Module deref

Source

Traits§

Deref
Used for immutable dereferencing operations, like *v.
DerefMut
Used for mutable dereferencing operations, like in *v = 1;.
DerefPureExperimental
Perma-unstable marker trait. Indicates that the type has a well-behaved Deref (and, if applicable, DerefMut) implementation. This is relied on for soundness of deref patterns.
LegacyReceiver 👻 Experimental
Indicates that a struct can be used as a method receiver, without the arbitrary_self_types feature. This is implemented by stdlib pointer types like Box<T>, Rc<T>, &T, and Pin<P>.
ReceiverExperimental
Indicates that a struct can be used as a method receiver. That is, a type can use this type as a type of self, like this: