Crate twounordered

Source
Expand description

A crate that provides the user with two fast “vec-like” vecs that are backed by a single vec. The caveat is that the operations like push and truncate may rearrange the order of the other vec in an unspecified way. Also provides a retain_mut_unordered function to both the regular Vec as well as the two “vec-like” vecs provided by this crate.

Structs§

FirstVec
SecondVec
TwoUnorderedVecs

Traits§

RetainMutUnordered
Retain only elements that satisfy the predicate. May rearrange elements in the process.
VecTrait
Abstract over a Vec and a &mut Vec