Function heap::set_allocator

source ·
pub fn set_allocator(allocator: Box<dyn GlobalAlloc + Send + Sync>)
Expand description

Sets a new default allocator to be used by the global heap. It will start being used after this function is called.