1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-07-02 21:16:54 +02:00

Update receiver.md (#440)

This commit is contained in:
Adam MacBeth
2023-02-18 20:52:41 -08:00
committed by GitHub
parent df2c773652
commit 9510e80165

View File

@ -22,8 +22,8 @@ allowed to be receiver types, such as `Box<Self>`.
<details> <details>
Consider emphasizing on "shared and immutable" and "unique and mutable". These constraints always come 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 won't be possible to 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. reference a struct from multiple locations and call a mutating (`&mut self`) method on it.
</details> </details>