pub type DynVec = RawDynVec<Chunks>;Expand description
A dynamic vector, able to store any kind of data.
Aliased Type§
pub struct DynVec { /* private fields */ }Implementations§
Source§impl DynVec
impl DynVec
Sourcepub fn with_chunk_size(min_chunk_size: usize) -> Self
pub fn with_chunk_size(min_chunk_size: usize) -> Self
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.
Sourcepub fn with_chunks(min_chunk_size: usize, chunk_count: usize) -> Self
pub fn with_chunks(min_chunk_size: usize, chunk_count: usize) -> Self
Creates a new DynVec with the given chunk size and chunk count.
This function allocates chunk_count chunks in advance.