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

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

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

borrow-checker

go

为什么我不能在作用域之外编辑这些值?

英文: Why can't I edit these values outside the scope? 问题 我正在开发一个光线追踪器,在其中需要根据运行时的输入来更改某些变量。我有诸如 C...
huangapple 2023年6月29日140评论borrow-checker rust
go

Rust借用检查器问题:不知道不可变借用发生在哪里,导致无法编译。

英文: Rust Borrow Checker Question: Don't know where immutable borrow happens that prevents compil...
huangapple 2023年6月16日142评论borrow-checker rust
go

当一个类型是 `Copy` 时,方法应该移动 (`self`) 还是借用 (`&self`) 该类型?

英文: When a type is `Copy` should a method move (`self`) or borrow (`&self`) the type? 问题 在Rust中,...
huangapple 2023年6月15日135评论borrow-checker rust
go

返回一个包含对将被丢弃的值的引用的结构体。

英文: Return a struct which has a reference to a value which will be dropped 问题 I have problems with m...
huangapple 2023年6月11日132评论borrow-checker rust
go

Rust中的引用是如何存储在内存中(具体是堆栈中)?

英文: How are Rust references stores in Memory (Specifically Stack) 问题 I have been learning about refe...
huangapple 2023年6月6日128评论rust rust-cargo
go

不能在循环内借用为不可变的,因为它同时被借用为可变的。

英文: Cannot borrow as immutable (inside loop) because it is also borrowed as mutable 问题 我通过《编程之旅》学习Ru...
huangapple 2023年5月29日130评论borrow-checker rust
go

为变量创建别名。

英文: Creating an alias for a variable 问题 I have the following code in Rust (which will not compile bu...
huangapple 2023年5月25日131评论borrow-checker rust
go

Create MappedRwLockWriteGuard from a reference in if/else in Rust

英文: Create MappedRwLockWriteGuard from a reference in if/else in Rust 问题 let property = if i_already...
huangapple 2023年5月21日131评论mutex rust
go

在`match`分支内部借用可变变量。

英文: Borrow mutable inside of `match` arm 问题 I'm new to Rust, so I'm sorry if this question has an ab...
huangapple 2023年5月21日132评论borrow-checker rust
go

在这里,难以理解`self`逃离了方法体。

英文: Trouble understanding `self` escapes the method body here 问题 I'm very new to Rust. I've been thr...
huangapple 2023年5月17日135评论borrow-checker rust
3

文章导航

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

热门标签

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

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

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

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

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

    本页二维码