[][src]Struct im::vector::RRBPool

pub struct RRBPool<A> { /* fields omitted */ }

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]

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]

impl<A> Default for RRBPool<A>[src]

fn default() -> Self[src]

Construct a pool with a reasonable default pool size.

Auto Trait Implementations

impl<A> RefUnwindSafe for RRBPool<A> where
    A: RefUnwindSafe

impl<A> Send for RRBPool<A> where
    A: Send + Sync

impl<A> Sync for RRBPool<A> where
    A: Send + Sync

impl<A> Unpin for RRBPool<A> where
    A: Unpin

impl<A> UnwindSafe for RRBPool<A> where
    A: RefUnwindSafe + UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,