bucket_allocator

Attribute Macro bucket_allocator 

Source
#[bucket_allocator]
Expand description

Macro to turn a struct into an allocator.

bucket_allocator is an attribute macro that builds a GlobalAlloc-compatible data type from a given struct. Please see the module-level documentation for details and examples.

The macro supports the following options:

  • sort_buckets = <true|false>: Sort buckets by item size, then alignment