Module storage

Source
Expand description

Backing storage types for collections.

Structs§

ArrayStorage
A storage buffer consisting of an uninitialized MaybeUnit array.
FatBuffer
A slice allocation handle which stores the header metadata in the handle.
Inline
A marker type used to indicate the inline allocation strategy, which stores all items within the collection handle.
InlineBuffer
An inline storage buffer.
SpillStorage
An allocator which consumes the provided fixed storage before deferring to the contained A instance allocator for further allocations
ThinBuffer
A slice allocation handle which stores the header metadata in the handle.

Traits§

BufferHeader
A header type used by a buffer to determine its size.
RawBuffer
Provide access to the associated data for abstract buffer types.

Functions§

aligned_byte_storage
Create a new byte storage buffer for a maximum byte capacity N, with a memory alignment matching type T.
array_storage
Create a new array storage buffer for type T and maximum capacity N.
byte_storage
Create a new byte storage buffer for a maximum byte capacity N.

Unions§

ByteStorage
A reusable storage buffer consisting of an array of bytes.