[][src]Macro unique::make_allocator

macro_rules! make_allocator {
    ($type:ty, $name:ident, $alloc:ident) => { ... };
}

make_allocator!(Type, NAME, Allocator)

Performs the following steps:

  • Create a static reference to an Allocator<Type> accessible by NAME.
  • Lazily initialise (via lazy_static) to Allocator::default().
  • Implements Allocated for Type by using this allocator.