flex_alloc

Module storage

Source
Expand description

Backing storage types for collections.

Structs§

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

Traits§

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

Functions§

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

Unions§

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