1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-05-17 08:02:38 +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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>