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 a T.

Create a Trident<T> from an Erased.

Unsafe because we don’t know that erased contains a T.

Get a pointer to the contained T.

Get a reference to the contained T.

Get a mutable pointer to the contained T.

Get a mutable reference to the contained T.

Convert to the contained T

Copy out the contained T

Convert to an Erased.

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

Trait Implementations

Executes the destructor for this type. Read more

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.