Struct im_rc::vector::RRBPool [−][src]
A memory pool for Vector
.
Implementations
impl<A> RRBPool<A>
[src]
pub fn new(size: usize) -> Self
[src]
Create a new memory pool with the given size.
pub fn with_sizes(
node_pool_size: usize,
leaf_pool_size: usize,
size_table_pool_size: usize
) -> Self
[src]
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.
pub fn fill(&self)
[src]
Fill the memory pool with preallocated chunks.
pub fn node_pool_size(&self) -> usize
[src]
Get the size of the node subpool.
pub fn leaf_pool_size(&self) -> usize
[src]
Get the size of the leaf node subpool.
pub fn size_table_pool_size(&self) -> usize
[src]
Get the size of the size table subpool.
Trait Implementations
impl<A> Clone for RRBPool<A>
[src]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<A> Default for RRBPool<A>
[src]
Auto Trait Implementations
impl<A> !RefUnwindSafe for RRBPool<A>
impl<A> !Send for RRBPool<A>
impl<A> !Sync for RRBPool<A>
impl<A> Unpin for RRBPool<A> where
A: Unpin,
A: Unpin,
impl<A> !UnwindSafe for RRBPool<A>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,