pub unsafe trait IntoErasedSend<'a> {
type Erased: Send;
fn into_erased_send(self) -> Self::Erased;
}
Expand description
Helper trait for erasing the concrete type of what an owner dereferences to,
for example Box<T> -> Box<Erased + Send>
. This would be unneeded with
higher kinded types support in the language.
Required Associated Types§
Required Methods§
sourcefn into_erased_send(self) -> Self::Erased
fn into_erased_send(self) -> Self::Erased
Performs the type erasure.