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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)