Module mz_ore::vec

source ·
Expand description

Vector utilities.


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


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


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