pub fn new(
        small_allocator: SmallAllocator,
        size: MemUnit,
        large_allocator: LargeAllocator,
    ) -> Self {
        Self {
            small_allocator,
            large_allocator,
            size: size.to_bytes(),
        }
    }
/// Create a new allocator which defers to the small allocator for
/// allocations below size bytes, and otherwise uses the large allocator.
Create a new allocator which defers to the small allocator for
allocations below size bytes, and otherwise uses the large allocator.
Create a new allocator which defers to the small allocator for allocations below size bytes and otherwise uses the large allocator .
pub fn new(
        small_allocator: SmallAllocator,
        size: MemUnit,
        large_allocator: LargeAllocator,
    ) -> Self {
        Self {
            small_allocator,
            large_allocator,
            size: size.to_bytes(),
        }
    }
pub fn new ( small_allocator : SmallAllocator , size : MemUnit , large_allocator : LargeAllocator , ) -> Self { Self { small_allocator , large_allocator , size : size . to_bytes ( ) , } }
Create a new allocator which defers to the small allocator for
allocations below size bytes, and otherwise uses the large allocator.
Create a new allocator which defers to the small allocator for allocations below size bytes and otherwise uses the large allocator .
small_allocator
SmallAllocator
size
MemUnit
large_allocator
LargeAllocator