Function dsp::sample::buffer::map_in_place_with
[−]
pub fn map_in_place_with<S, F>(a: &mut [S], b: &[S], map_with: F) where F: FnMut(S, S) -> S, S: Sample
Mutate every element in buffer a
while reading from each element from buffer b
in lock-step
using the given function.
Panics if the length of b
is not equal to the length of a
.