[][src]Macro compact_arena::recycle_arena

macro_rules! recycle_arena {
    ($arena:ident) => { ... };
}

Empty the arena, and set the binding to a new arena using the storage of the argument.

Examples

mk_arena!(a, 5);
let i = a.add(22u32);
recycle_arena!(a);
let x = a.add(42);
// i is no longer alive