Trait rustc_ap_rustc_data_structures::owning_ref::IntoErasedSend[][src]

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.

Associated Types

type Erased: Send[src]

Owner with the dereference type substituted to Erased + Send.

Required methods

fn into_erased_send(self) -> Self::Erased[src]

Performs the type erasure.

Implementations on Foreign Types

impl<'a, T: Send + 'a> IntoErasedSend<'a> for Box<T>[src]

type Erased = Box<dyn Erased + Send + 'a>

fn into_erased_send(self) -> Self::Erased[src]

Implementors