Skip to main content

aligned_allocator

Function aligned_allocator 

Source
pub fn aligned_allocator() -> &'static AlignedAllocator
Expand description

Returns the process-wide aligned allocator handle.

The returned reference is a zero-cost singleton — AlignedAllocator is zero-sized, so callers may also construct one inline with AlignedAllocator::new() at no extra cost.