Function cosmic::cosmic_theme::palette::cast::map_slice_box_in_place
source ยท pub fn map_slice_box_in_place<A, B, F>(values: Box<[A]>, map: F) -> Box<[B]>
Expand description
Map values of color A to values of color B without creating a new Box<[B]>
.
This uses the guarantees of ArrayCast
to reuse the allocation.