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

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

bj
登录
  • 友情链接
站内
ownership

ownership

go

重新绑定一个变量,使其在`match`声明中使用时具有不同的类型。

英文: Rebind a variable to a different type while used in the `match` declaration 问题 我正在使用Rust编写代码,使用类...
huangapple 2023年8月4日130评论ownership rust
go

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

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

有差异吗 .to_owned()、.clone() 和解引用 (*) 之间?

英文: Are there differences between .to_owned(), .clone() and dereferencing (*)? 问题 使用这个在 Rust Playgro...
huangapple 2023年7月27日141评论clone rust
go

从保留或引用中获取所有权

英文: Take Ownership from retain or reference 问题 我正在编写一个Rust解析器玩具,并且想要转换一些节点,有三种可能的转换操作:删除、保留和ToTopLev...
huangapple 2023年7月23日156评论reference rust
go

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

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

use of moved value: `response` value used here after move for types not implementing the Copy trait

英文: use of moved value: `response` value used here after move for types not implementing the Copy tr...
huangapple 2023年6月13日126评论ownership rust
go

将变量传递给函数以在Rust中重新创建它

英文: Passing a variable so a function recreates it in rust 问题 I'm trying to insert multiple pieces in...
huangapple 2023年6月8日121评论lifetime rust
go

vector of string slices goes out of scope but original string remains, why is checker saying there is an error?

英文: vector of string slices goes out of scope but original string remains, why is checker saying the...
huangapple 2023年2月18日113评论ownership rust
go

Rust中的方法来转移所有权,同时保证不复制底层数据。

英文: Rust way to transfer ownership while guaranteeing no underlying data copy 问题 我有点困惑如何在不进行实际数据复制的情...
huangapple 2023年2月8日156评论pointers rust
go

Rust: 尝试从Stdin获取下一个字节时的所有权问题

英文: Rust: Ownership problem when trying to get next byte from Stdin 问题 The reason for the error in y...
huangapple 2023年2月8日142评论rust stdin

文章导航

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

热门标签

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

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

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

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

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

    本页二维码