Skip to main content

bounded_allocator

Macro bounded_allocator 

Source
macro_rules! bounded_allocator {
    ($max_blocks:expr, $block_size:expr $(,)?) => { ... };
}
Expand description

Construct a const-evaluable BoundedAllocator expression with the bitmap word count computed automatically. Useful in regular (non-global-allocator) static declarations and tests.

static TEST_ALLOC: BoundedAllocator<4, 32, 1> =
    taktora_bounded_alloc::bounded_allocator!(4, 32);