pub struct BlockPool<const BLOCK_SIZE: usize, const NUM_BLOCKS: usize, const BITMAP_SIZE: usize> { /* private fields */ }Expand description
Block-based memory pool with fixed-size blocks
More efficient for frequent allocations/deallocations of similar sizes
Implementations§
Trait Implementations§
Source§impl<const BLOCK_SIZE: usize, const NUM_BLOCKS: usize, const BITMAP_SIZE: usize> Default for BlockPool<BLOCK_SIZE, NUM_BLOCKS, BITMAP_SIZE>
impl<const BLOCK_SIZE: usize, const NUM_BLOCKS: usize, const BITMAP_SIZE: usize> Default for BlockPool<BLOCK_SIZE, NUM_BLOCKS, BITMAP_SIZE>
Source§impl<const BLOCK_SIZE: usize, const NUM_BLOCKS: usize, const BITMAP_SIZE: usize> MemoryPool for BlockPool<BLOCK_SIZE, NUM_BLOCKS, BITMAP_SIZE>
impl<const BLOCK_SIZE: usize, const NUM_BLOCKS: usize, const BITMAP_SIZE: usize> MemoryPool for BlockPool<BLOCK_SIZE, NUM_BLOCKS, BITMAP_SIZE>
impl<const BLOCK_SIZE: usize, const NUM_BLOCKS: usize, const BITMAP_SIZE: usize> Send for BlockPool<BLOCK_SIZE, NUM_BLOCKS, BITMAP_SIZE>
impl<const BLOCK_SIZE: usize, const NUM_BLOCKS: usize, const BITMAP_SIZE: usize> Sync for BlockPool<BLOCK_SIZE, NUM_BLOCKS, BITMAP_SIZE>
Auto Trait Implementations§
impl<const BLOCK_SIZE: usize, const NUM_BLOCKS: usize, const BITMAP_SIZE: usize> !Freeze for BlockPool<BLOCK_SIZE, NUM_BLOCKS, BITMAP_SIZE>
impl<const BLOCK_SIZE: usize, const NUM_BLOCKS: usize, const BITMAP_SIZE: usize> !RefUnwindSafe for BlockPool<BLOCK_SIZE, NUM_BLOCKS, BITMAP_SIZE>
impl<const BLOCK_SIZE: usize, const NUM_BLOCKS: usize, const BITMAP_SIZE: usize> Unpin for BlockPool<BLOCK_SIZE, NUM_BLOCKS, BITMAP_SIZE>
impl<const BLOCK_SIZE: usize, const NUM_BLOCKS: usize, const BITMAP_SIZE: usize> UnsafeUnpin for BlockPool<BLOCK_SIZE, NUM_BLOCKS, BITMAP_SIZE>
impl<const BLOCK_SIZE: usize, const NUM_BLOCKS: usize, const BITMAP_SIZE: usize> UnwindSafe for BlockPool<BLOCK_SIZE, NUM_BLOCKS, BITMAP_SIZE>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more