mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-05-17 16:12:39 +02:00
Update receiver.md (#440)
This commit is contained in:
parent
df2c773652
commit
9510e80165
@ -22,8 +22,8 @@ allowed to be receiver types, such as `Box<Self>`.
|
||||
|
||||
<details>
|
||||
|
||||
Consider emphasizing on "shared and immutable" and "unique and mutable". These constraints always come
|
||||
together in Rust due to borrow checker rules, and `self` is no exception. It won't be possible to
|
||||
Consider emphasizing "shared and immutable" and "unique and mutable". These constraints always come
|
||||
together in Rust due to borrow checker rules, and `self` is no exception. It isn't possible to
|
||||
reference a struct from multiple locations and call a mutating (`&mut self`) method on it.
|
||||
|
||||
</details>
|
||||
|
Loading…
x
Reference in New Issue
Block a user