[−][src]Trait rustc_data_structures::owning_ref::IntoErasedSendSync
🔬 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 dereferences to,
for example Box<T> -> Box<Erased + Send + Sync>
. This would be unneeded with
higher kinded types support in the language.
Associated Types
type Erased: Send + Sync
🔬 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 + Send + Sync
.
Required Methods
fn into_erased_send_sync(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: Send + 'a> IntoErasedSendSync<'a> for Box<T>
[src]
impl<'a, T: Send + 'a> IntoErasedSendSync<'a> for Box<T>
type Erased = Box<Erased + Sync + Send + '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_send_sync(self) -> Self::Erased
[src]
fn into_erased_send_sync(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?
impl<'a, T: Send + Sync + 'a> IntoErasedSendSync<'a> for Arc<T>
[src]
impl<'a, T: Send + Sync + 'a> IntoErasedSendSync<'a> for Arc<T>
type Erased = Arc<Erased + Send + Sync + '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_send_sync(self) -> Self::Erased
[src]
fn into_erased_send_sync(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?