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

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

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

borrow-checker

go

One function call creates double borrow error while other does not.

英文: One function call creates double borrow error while other does not 问题 I am a bit confused about ...
huangapple 2023年5月14日121评论borrow-checker rust
go

Working around rust’s double borrow error in this pattern.

英文: Working around rust's double borrow error in this pattern 问题 I am writing a gameboy emulator...
huangapple 2023年5月14日139评论borrow-checker rust
go

Rust:使用drop(&RefMut)而不是drop(RefMut)?

英文: Rust : drop(&RefMut) instead of drop(RefMut)? 问题 我知道当从 RefCell 中借用一个值时,我可以手动丢弃它以结束这个借用。 然而,如...
huangapple 2023年5月7日124评论borrow-checker rust
go

在每个循环迭代中放弃借用。

英文: Drop borrow in each loop iteration 问题 Here's the translated code without the parts you mentioned...
huangapple 2023年4月17日120评论borrow-checker rust
go

如何为Rust结构实现运算符,当操作数可以是值或引用时?

英文: How to implement operators for a Rust struct when the operands might be values or references? 问题...
huangapple 2023年4月11日142评论borrow-checker rust
go

数组为什么需要引用,而向函数传递参数时,向量不需要引用?

英文: Why does an array require a reference, but a vector doesn't when we pass them as a parameter...
huangapple 2023年3月7日144评论arrays rust
go

如何使结构中的向量使用“add assign”特性?

英文: How should I get the add assign trait to work for a vector within a struct? 问题 New to rust. Woul...
huangapple 2023年3月4日136评论borrow-checker rust
go

cannot borrow `*self` as mutable because it is also borrowed as immutable on returning an Option containing a reference to self

英文: cannot borrow `*self` as mutable because it is also borrowed as immutable on returning an Option...
huangapple 2023年2月26日146评论borrow-checker rust
go

不能同时多次借用为可变的变量

英文: Cannot borrow as mutable more than once at a time 问题 I'm trying to build a CHIP-8 emulator in Ru...
huangapple 2023年2月24日130评论borrow-checker rust
go

如何将 trait 作为结构体的一个拥有的字段?

英文: How do I have a trait as a owned field of a struct? 问题 抱歉,你的请求是要将英文文本翻译成代码部分,请看下面的翻译: 我对Rust还比较新...
huangapple 2023年2月18日132评论rust struct
3

文章导航

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

热门标签

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

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

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

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

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

    本页二维码