compiler/pitfalls/the-disabled-mutability #989
Replies: 4 comments
-
通过这些小例子也学到了一些东西,越来越觉得rust好了。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
这里的 a.f1 已经被不可变借用,所以只有 |
Beta Was this translation helpful? Give feedback.
0 replies
-
可以把println移到a.f1 = 10;之前,这样根据借用栈模型是可以编译通过的 |
Beta Was this translation helpful? Give feedback.
0 replies
-
可变性的真正含义是你对目标对象的独占修改权 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
compiler/pitfalls/the-disabled-mutability
https://course.rs/compiler/pitfalls/the-disabled-mutability.html
Beta Was this translation helpful? Give feedback.
All reactions