Module vec

Source
Expand description

Vector utilities.

Structs§

DrainFilterSwapping
An iterator which uses a closure to determine if an element should be removed.

Traits§

PartialOrdVecExt
Extension methods for Vec<T> where T: PartialOrd
VecExt
Extension methods for std::vec::Vec
Vector
A trait for objects that behave like vectors.

Functions§

repurpose_allocation
Create a new vector that re-uses the same allocation as an old one. The element types must have the same size and alignment.
swap_remove_multiple
Remove the elements from v at the positions indicated by indexes, and return the removed elements in a new vector.