Function get_allocator_info

Source
pub fn get_allocator_info() -> &'static AllocatorInfo
Expand description

Returns information about the automatically selected allocator

Provides allocator type, selection rationale, and system information. First call triggers hardware detection; subsequent calls return cached results.

ยงExample

use auto_allocator;

let info = auto_allocator::get_allocator_info();
println!("Using: {:?}", info.allocator_type);
println!("Reason: {}", info.reason);