3 ms·
For people that might be confused, setting a custom global allocator is possible in stable, but the Allocator trait isn't yet, so specifying the allocator for a
by estebank 4y ago
For people that might be confused, setting a custom global allocator is possible in stable, but the Allocator trait isn't yet, so specifying the allocator for a specific instance of a Vec isn't possible in stable.
https://doc.rust-lang.org/std/alloc/index.html#the-global_allocator-attribute https://doc.rust-lang.org/std/alloc/index.html#the-global_al...
https://github.com/rust-lang/wg-allocators https://github.com/rust-lang/wg-allocators