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
.