[][src]Macro compact_arena::mk_nano_arena

macro_rules! mk_nano_arena {
    ($name:ident) => { ... };
}

Create a tiny arena. The indirection through this macro is required to bind the indices to the arena.

Examples

mk_nano_arena!(arena);
let idx = arena.add(1usize);
assert_eq!(1, arena[idx]);