#[doc(hidden)] pub trait LegacyReceiver { }
🔬This is a nightly-only experimental API. (
legacy_receiver_trait
)Expand description
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
.