musli-allocator
Allocation support for Müsli.
This crate contains two types of allocators:
- The [
System] allocator, which uses the system allocation facilities. Particularlystd::alloc::System. - The [
Stack] allocator, which can allocate buffers from a fixed-size slice.
Examples
use ;
let mut buf = buffer;
let alloc = new;
let mut a = alloc.alloc.expect;
let mut b = alloc.alloc.expect;
b.write;
a.write;
assert_eq!;
assert_eq!;
a.write;
assert_eq!;
assert_eq!;
let mut c = alloc.alloc.expect;
c.write;
a.write;
assert_eq!;
assert_eq!;