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>
impl<A> UnwindSafe for RRBPool<A> where
A: 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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more