slicedvec

Crates.ioslicedvec
lib.rsslicedvec
version0.2.3
sourcesrc
created_at2023-05-29 22:12:29.890516
updated_at2023-06-01 18:49:09.473693
descriptionA segmented vector for iterating over slices
homepage
repository
max_upload_size
id877349
size1,133,050
Timothy Keitt (thk686)

documentation

README

slicedvec

This is a rust crate that provides a type SlicedVec<T> that emulates aspects of Vec<Vec<T>> using a single Vec<T> for storage. The main purpose is to support the swap-remove idiom. When repeatedly creating and dropping many objects, the swap-remove idiom can be used to eliminate most allocations. This does not work however if the stored objects themselves allocate, as happens with Vec<Vec<T>>.

Commit count: 0

cargo fmt