Struct trident::Erased[][src]

#[repr(C, align(4))]
pub struct Erased { /* fields omitted */ }

Implementations

Create an Erased from a T

T’s destructor cannot be run, as the type is erased.

Get a pointer to the contained T. Unsafe because we don’t know that this is the same T that this Erased was created with.

Get a reference to the contained T. Unsafe because we don’t know that this is the same T that this Erased was created with.

Get a mutable pointer to the contained T. Unsafe because we don’t know that this is the same T that this Erased was created with.

Get a mutable reference to the contained T. Unsafe because we don’t know that this is the same T that this Erased was created with.

Copy the contained T. Unsafe because we don’t know that this is the same T that this Erased was created with.

Get the contained T. Unsafe because we don’t know that this is the same T that this Erased was created with.

Convert to a Trident<T> Unsafe because we don’t know that this is the same T that this Erased was created with.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.