Scoped Allocator
This crate provides a scoped linear allocator. This is useful for reusing a block of memory for temporary allocations in a tight loop. Scopes can be nested and values allocated in a scope cannot be moved outside it.
;
// new allocator with a kilobyte of memory.
let alloc = new;
alloc.scope;
let my_int = alloc.allocate.ok.unwrap;
println!;
Disclaimer: this crate leans heavily on unsafe code and nightly features and should not be used in production as it stands.