[][src]Type Definition dynvec::DynVec

type DynVec = RawDynVec<Chunks>;

A dynamic vector, able to store any kind of data.

Implementations

impl DynVec[src]

pub fn new() -> Self[src]

Allocates a new DynVec with a minimal chunk size of 1024 bytes.

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

Creates a new DynVec with the given chunk size. Note that chunks can be allocated with a larger size if large objects need to be inserted.

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

Creates a new DynVec with the given chunk size and chunk count. This function allocates chunk_count chunks in advance.

Trait Implementations

impl Default for DynVec[src]

pub fn default() -> Self[src]

Creates a new empty DynVec with a minimal chunk size of 1024 bytes.