Function apply_indexed_unary

Source
pub fn apply_indexed_unary<T, F: Fn(usize) -> T>(dst: &mut [T], f: F)
Expand description

Apply the closure f to each element of dst along with its index, and store the result in dst.