Struct trident::Trident [−][src]
#[repr(C)]pub struct Trident<T> { /* fields omitted */ }Expand description
A struct that stores a T, either inline or, if T is larger than 3 words, allocated.
Implementations
Create a Trident<T> from an Erased.
Unsafe because we don’t know that erased contains a T.
Get a mutable pointer to the contained T.
Get a mutable reference to the contained T.
Convert to the contained T
Convert to an Erased.
T’s destructor cannot be run, as the type is erased.