fn allocator_for(layout: Layout) -> AllocatorType {
        const MAX_ALLOC_PLUS_ONE: usize = ZoneAllocator::MAX_ALLOC_SIZE + 1;
        match layout.size() {
            0..=ZoneAllocator::MAX_ALLOC_SIZE => AllocatorType::Zone,
            MAX_ALLOC_PLUS_ONE..=LARGE_PAGE_SIZE => AllocatorType::MemManager,
            _ => AllocatorType::MapBig,
        }
    }
/// Determines which Allocator to use for a given Layout.
Determines which Allocator to use for a given Layout.
Determines which Allocator to use for a given Layout .
fn allocator_for(layout: Layout) -> AllocatorType {
        const MAX_ALLOC_PLUS_ONE: usize = ZoneAllocator::MAX_ALLOC_SIZE + 1;
        match layout.size() {
            0..=ZoneAllocator::MAX_ALLOC_SIZE => AllocatorType::Zone,
            MAX_ALLOC_PLUS_ONE..=LARGE_PAGE_SIZE => AllocatorType::MemManager,
            _ => AllocatorType::MapBig,
        }
    }
fn allocator_for ( layout : Layout ) -> AllocatorType { const MAX_ALLOC_PLUS_ONE : usize = ZoneAllocator :: MAX_ALLOC_SIZE + 1 ; match layout . size ( ) { 0 ..= ZoneAllocator :: MAX_ALLOC_SIZE => AllocatorType :: Zone , MAX_ALLOC_PLUS_ONE ..= LARGE_PAGE_SIZE => AllocatorType :: MemManager , _ => AllocatorType :: MapBig , } }
Determines which Allocator to use for a given Layout.
Determines which Allocator to use for a given Layout .
layout
Layout
layout
Layout