[][src]Macro compact_arena::in_tiny_arena

macro_rules! in_tiny_arena {
    ($arena:ident, $e:expr) => { ... };
}

Run code using a tiny arena. The indirection through this macro is required to bind the indices to the arena.

Examples

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