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

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

bj
登录
  • 友情链接
站内
borrow-checker

borrow-checker

go

在Rust函数中出现奇怪的生命周期,第二个可变借用发生。

英文: strange lifetime in rust functions, second mutable borrow occurs 问题 第一个代码示例中有一个生命周期标记<'a>,...
huangapple 2023年8月10日266评论borrow-checker rust
go

从重载运算符中返回所有权,如果无法使用Copy特性。

英文: Return ownership from an overloaded operator if Copy trait is unavailable 问题 在包含String的结构体中(从而阻止...
huangapple 2023年7月31日163评论rust string
go

为什么在不安全的块中,静态可变变量可以有多个独占借用?

英文: Rust: why multiple exclusive borrows are possible for static mut variables in unsafe blocks? 问题 ...
huangapple 2023年7月23日164评论rust static
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

为什么我可以使用 &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

如何将结构体的属性更改为包含旧值的新值?

英文: How do I change an attribute on a struct to a new value which contains the old value? 问题 如何将结构体中...
huangapple 2023年7月17日152评论borrow-checker rust
go

map函数:无法移出…,因为它位于可变引用之后。

英文: map function : cannot move out of ... which is behind a mutable reference 问题 我正在按照这个教程,并遇到了关于map...
huangapple 2023年7月7日152评论borrow-checker rust
go

双重循环遍历 Rust 中的一个集合,其中一个循环会对其进行更改。

英文: Double loop over one collection in Rust where one loop changes it 问题 我试图迭代集合`ants`(`Vec&lt;A...
huangapple 2023年7月3日143评论borrow-checker rust
go

为什么我会收到一个“借用的数据逃逸出方法之外”错误?

英文: Why do I get a "borrowed data escapes outside of method" error? 问题 我有一个名为 renderer 的变量...
huangapple 2023年6月29日208评论loops rust

文章导航

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

热门标签

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

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

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

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

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

    本页二维码