pub struct RRBPool<A> { /* private fields */ }
Expand description
A memory pool for Vector
.
Implementations§
Source§impl<A> RRBPool<A>
impl<A> RRBPool<A>
Sourcepub fn with_sizes(
node_pool_size: usize,
leaf_pool_size: usize,
size_table_pool_size: usize,
) -> Self
pub fn with_sizes( node_pool_size: usize, leaf_pool_size: usize, size_table_pool_size: usize, ) -> Self
Create a new memory pool with the given sizes for each subpool.
Sourcepub fn node_pool_size(&self) -> usize
pub fn node_pool_size(&self) -> usize
Get the size of the node subpool.
Sourcepub fn leaf_pool_size(&self) -> usize
pub fn leaf_pool_size(&self) -> usize
Get the size of the leaf node subpool.
Sourcepub fn size_table_pool_size(&self) -> usize
pub fn size_table_pool_size(&self) -> usize
Get the size of the size table subpool.
Trait Implementations§
Auto Trait Implementations§
impl<A> Freeze for RRBPool<A>
impl<A> RefUnwindSafe for RRBPool<A>where
A: RefUnwindSafe,
impl<A> Send for RRBPool<A>
impl<A> Sync for RRBPool<A>
impl<A> Unpin for RRBPool<A>where
A: Unpin,
impl<A> UnwindSafe for RRBPool<A>where
A: UnwindSafe + RefUnwindSafe,
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