Trait owning_ref::IntoErased
[−]
[src]
pub unsafe trait IntoErased<'a> {
type Erased;
fn into_erased(self) -> Self::Erased;
}🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Helper trait for erasing the concrete type of what an owner derferences to,
for example Box<T> -> Box<Erased>. This would be unneeded with
higher kinded types support in the language.
Associated Types
type Erased
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Owner with the dereference type substituted to Erased.
Required Methods
fn into_erased(self) -> Self::Erased
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Perform the type erasure.
Implementations on Foreign Types
impl<'a, T: 'a> IntoErased<'a> for Box<T>[src]
type Erased = Box<Erased + 'a>
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn into_erased(self) -> Self::Erased[src]
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl<'a, T: 'a> IntoErased<'a> for Rc<T>[src]
type Erased = Rc<Erased + 'a>
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn into_erased(self) -> Self::Erased[src]
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl<'a, T: 'a> IntoErased<'a> for Arc<T>[src]
type Erased = Arc<Erased + 'a>
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn into_erased(self) -> Self::Erased[src]
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?