[−][src]Trait context_allocator::allocators::global::LocalAllocator
A local allocator is an allocator with a known range of memory addresses it uses for allocated memory.
This allows logic to determine which allocator should be used to free (deallocate) which memory pointers.
Required methods
fn memory_range(&self) -> MemoryRange
The range of memory addresses that can be used to allocate memory by this allocator.
This function is called repeatedly, so ideally should be inline and fast.
Provided methods
fn contains(&self, from_memory_address: MemoryAddress) -> bool
Returns true
if this allocator is responsible for an allocation starting with the given from_memory_address
.
This function is called repeatedly, so ideally should be inline and fast.