Struct static_box::Box[][src]

pub struct Box<'m, T: ?Sized> where
    T: Pointee<Metadata = DynMetadata<T>>, 
{ /* fields omitted */ }
Expand description

A box that uses the provided memory to store dynamic objects.

Implementations

Places a value into the specified mem buffer. The user should provide enough memory to store the value with its metadata considering alignment requirements.

Panics

  • If the provided buffer is insufficient to store the value.

Calculates layout describing a record that could be used to allocate backing structure for Value.

Trait Implementations

Performs the conversion.

Performs the conversion.

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

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.