Receiver
Note
This article is a stub. Help improve the wiki by clicking the edit icon above and submitting a pull request.
The Receiver trait enables “arbitrary self types” by doing two things:
- Defining when a smart pointer type is allowed to be a method receiver.
- Generalizing method receivers past types that implement
Deref.
Resources
3519-arbitrary-self-types-v2 - The Rust RFC Book
- Tracking issue for RFC 3519:
arbitrary_self_types· Issue #44874 · rust-lang/rust - Arbitrary self types v2: stabilize by adetaylor · Pull Request #135881 · rust-lang/rust
Backlinks