Expand description
Backing storage types for collections.
Structs§
- Array
Storage - 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.
- Inline
Buffer - An inline storage buffer.
- Spill
Storage - An allocator which consumes the provided fixed storage before deferring to the
contained
A
instance allocator for further allocations - Thin
Buffer - A slice allocation handle which stores the header metadata in the handle.
Traits§
- Buffer
Header - 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 typeT
. - array_
storage - Create a new array storage buffer for type
T
and maximum capacityN
. - byte_
storage - Create a new byte storage buffer for a maximum byte capacity
N
.
Unions§
- Byte
Storage - A reusable storage buffer consisting of an array of bytes.