[][src]Struct dynvec::region::chunks::Chunks

pub struct Chunks<H> { /* fields omitted */ }

Reallocates new chuncks when it gets too small to allocate new objects.

Implementations

impl<H> Chunks<H>[src]

pub fn new(min_chunk_size: usize) -> Self[src]

Creates a new instance of Chunks. No chunks will be allocated until an object is allocated.

Note that chunks may need to allocate more memory than min_chunk_size to store allocate a large number of bytes.

pub fn with_chuncks(min_chunk_size: usize, chunk_count: usize) -> Self[src]

Creates a new instance of Chuncks. This function allocates chunk_count chunks in advance.

Trait Implementations

impl<H> Region<H> for Chunks<H>[src]

type Pointers = Flatten<IntoIter<<Block<H> as Region<H>>::Pointers>>

An iterator over all the allocations of this region.

Auto Trait Implementations

impl<H> RefUnwindSafe for Chunks<H> where
    H: RefUnwindSafe
[src]

impl<H> !Send for Chunks<H>[src]

impl<H> !Sync for Chunks<H>[src]

impl<H> Unpin for Chunks<H> where
    H: Unpin
[src]

impl<H> UnwindSafe for Chunks<H> where
    H: UnwindSafe
[src]

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, 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.