pub fn new(allocator: Allocator, block_size: MemUnit) -> Self {
        Self {
            parent: allocator,
            block_size: block_size.to_bytes(),
            blocks: HashMap::new(),
        }
    }
/// Create a new pool allocator which suballocates memory from large
/// blocks.
Create a new pool allocator which suballocates memory from large
blocks.
Create a new pool allocator which suballocates memory from large blocks .
pub fn new(allocator: Allocator, block_size: MemUnit) -> Self {
        Self {
            parent: allocator,
            block_size: block_size.to_bytes(),
            blocks: HashMap::new(),
        }
    }
pub fn new ( allocator : Allocator , block_size : MemUnit ) -> Self { Self { parent : allocator , block_size : block_size . to_bytes ( ) , blocks : HashMap :: new ( ) , } }
Create a new pool allocator which suballocates memory from large
blocks.
Create a new pool allocator which suballocates memory from large blocks .
allocator
Allocator
block_size
MemUnit