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.