Extract elements from a vector based on supplied criteria
Project by SnS Development
Need to filter some elements out of an existing Vector through a mutable borrow
A trait implemented on
Vec<T> with 2 functions
swap_remove_if that iterate over elements, runs a supplied closure,
and removes elements where the closure returns [true].
use VecRemoveIf; let mut v = vec!; assert_eq!; assert_eq!;