开发者交流平台
开发者交流平台

通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。

bj
登录
  • 友情链接
站内
rust

rust

go

在Rust的HashMap中,是否有一种通过索引获取插入的键和值的方法?

英文: Is there a way to get inserted key and value by index in Rust HashMaps? 问题 use std::collections:...
huangapple 2023年7月20日131评论rust
go

Rust如何返回大型类型(在优化之前)?

英文: How does Rust return large types (before optimisation)? 问题 如下面的函数签名所示: pub fn hash(input: &[...
huangapple 2023年7月18日111评论function-call rust
go

Why would rust error on accessing mutable borrow while immutable borrow isn't accessed anywhere?

英文: Why would rust error on accessing mutable borrow while immutable borrow isn't accessed anywh...
huangapple 2023年7月18日150评论borrow-checker rust
go

“borrowed data escapes outside of closure” 只有在使用 &mut 或线程时才会出现吗?

英文: "borrowed data escapes outside of closure" only when using &mut or threads? 问题 Whe...
huangapple 2023年7月18日164评论closures rust
go

更好的做法是返回一个Option还是只返回一个Vec?

英文: Is it better to return an Option of a Vec, or just a Vec? 问题 Suppose I am writing a function tha...
huangapple 2023年7月18日149评论arrays rust
go

为什么我可以使用 &mut (**ref) 创建两个对同一变量的可变引用?

英文: Why can I create two live &mut to the same variable using &mut (**ref)? 问题 以下是您提供的代码片段的翻...
huangapple 2023年7月18日144评论borrow-checker rust
go

Rust标准库为什么分配的内存间隙比预期的要大?

英文: Why does Rust std::alloc allocate with larger than expected gaps? 问题 如果我使用大小为256且对齐为1024的示例布局进行两...
huangapple 2023年7月18日182评论memory-management rust
go

为什么是 `&mut Send`?线程如何在安全的Rust中捕获 `&mut`?

英文: Why is &mut Send? How can a thread capture a &mut in safe Rust? 问题 "Sync"特性的语言...
huangapple 2023年7月18日157评论multithreading rust
go

为什么 `std::mem::forget` 不能用于创建静态引用?

英文: Why `std::mem::forget` cannot be used for creating static references? 问题 在上面的代码片段中,为什么会发生段错误?std...
huangapple 2023年7月18日154评论lifetime rust
go

如何将sha256获取为`&[u8; 32]`?

英文: How to get a sha256 as an `&[u8; 32]`? 问题 sha256::digest() 函数 返回一个 String。 我可以自己将其转换为 [u8; 3...
huangapple 2023年7月17日150评论rust slice
72

文章导航

1 … 4 5 6 7 8 9 10 11 12 … 72
name
开发者交流平台
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
文章117266 留言 4 访客17107414

热门标签

c++ typescript spring android flutter r javascript sql go css arrays reactjs json html c# java python pandas spring-boot node.js

悟已往之不谏,知来者之可追!

今日
00%
已00小时
本周
00%
已过00天
本月
00%
已过00天
今年
00%
已是00月

Copyright ©  开发者交流平台 版权所有.

闽 ICP 备 2022019110 号 - 1
  • 开发者交流平台

    本页二维码