Skip to main content

Module global

Module global 

Source
Expand description

The framework for global allocators.

When feature flag system is enabled, the global allocator is initially set to that. In this case, since there’s no way to clear the global allocator, get will always return Some.

Functions§

get
Retrieve the global allocator, if any has been set.
set
Overwrite the global allocator.