[][src]Macro compact_arena::mk_tiny_arena

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

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

Examples

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