pub fn map_vec_in_place<A, B, F>(values: Vec<A>, map: F) -> Vec<B>where A: ArrayCast, B: ArrayCast<Array = <A as ArrayCast>::Array>, F: FnMut(A) -> B,
Map values of color A to values of color B without creating a new Vec.
Vec
This uses the guarantees of ArrayCast to reuse the allocation.
ArrayCast