Trait LegacyReceiver

pub trait LegacyReceiver: PointeeSized

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

This trait will shortly be removed and replaced with a more generic facility based around the current "arbitrary self types" unstable feature. That new facility will use the replacement trait above called Receiver which is why this is now named LegacyReceiver.

Implementors