fn size_to_cache(&mut self, alloc_size: usize) -> &mut Cache {
        match alloc_size {
            32 => &mut self.cache32,
            64 => &mut self.cache64,
            128 => &mut self.cache128,
            256 => &mut self.cache256,
            512 => &mut self.cache512,
            1024 => &mut self.cache1024,
            2048 => &mut self.cache2048,
            4096 => &mut self.cache4096,
            8192 => &mut self.cache8192,
            _ => unreachable!(),
        }
    }
/// Converts a layout to a cache.
Converts a layout to a cache.
Converts a layout to a cache .
fn size_to_cache(&mut self, alloc_size: usize) -> &mut Cache {
        match alloc_size {
            32 => &mut self.cache32,
            64 => &mut self.cache64,
            128 => &mut self.cache128,
            256 => &mut self.cache256,
            512 => &mut self.cache512,
            1024 => &mut self.cache1024,
            2048 => &mut self.cache2048,
            4096 => &mut self.cache4096,
            8192 => &mut self.cache8192,
            _ => unreachable!(),
        }
    }
fn size_to_cache ( & mut self , alloc_size : usize ) -> & mut Cache { match alloc_size { 32 => & mut self . cache32 , 64 => & mut self . cache64 , 128 => & mut self . cache128 , 256 => & mut self . cache256 , 512 => & mut self . cache512 , 1024 => & mut self . cache1024 , 2048 => & mut self . cache2048 , 4096 => & mut self . cache4096 , 8192 => & mut self . cache8192 , _ => unreachable ! ( ) , } }
Converts a layout to a cache.
Converts a layout to a cache .
&mut self
alloc_size
usize
&mut self
alloc_size
usize