Trait owning_ref::IntoErased
source · pub unsafe trait IntoErased<'a> {
type Erased;
// Required method
fn into_erased(self) -> Self::Erased;
}
Expand description
Helper trait for erasing the concrete type of what an owner derferences to,
for example Box<T> -> Box<dyn Erased>
. This would be unneeded with
higher kinded types support in the language.
Required Associated Types§
Required Methods§
sourcefn into_erased(self) -> Self::Erased
fn into_erased(self) -> Self::Erased
Perform the type erasure.