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>
impl<A> UnwindSafe for RRBPool<A>where
A: 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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more