| Crates.io | slicedvec |
| lib.rs | slicedvec |
| version | 0.2.3 |
| created_at | 2023-05-29 22:12:29.890516+00 |
| updated_at | 2023-06-01 18:49:09.473693+00 |
| description | A segmented vector for iterating over slices |
| homepage | |
| repository | |
| max_upload_size | |
| id | 877349 |
| size | 1,133,050 |
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>>.