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.