pub struct RRBPool<A> { /* private fields */ }
Expand description
A memory pool for Vector
.
Implementations
sourceimpl<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> 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more