Expand description
The storages backing DynObject.
Structs§
- Align
- A zero-sized-type aligned to
N. Compound types containing a fieldAlign<N>with have an alignment of at leastN. - Box
alloc - A type-erased
Box. - Raw
- A raw storage, where data is stored in place.
- RawOr
Box - A
Rawstorage withBoxbackup if the object doesn’t fit in.
Traits§
- Alignment
- Implemented for all
Align<N>whereNis a valid alignment (i.e., a power of two less-than-or-equal to 228). - FromBox
alloc - A storage that can be constructed from boxed data.
- Storage
- A storage that can be used to store dynamic type-erased objects.
Type Aliases§
- Default
Storage - Default storage for
DynObject, and used indyn_traitmacro.