Function apply_binary

Source
pub fn apply_binary<T, F: Fn(T, T) -> T>(
    src1: &[T],
    src2: &[T],
    f: F,
    dst: &mut [T],
)
where T: Copy,
Expand description

Apply the closure f to each corresponding pair of elements of src1 and src2 and store the result in dst. All slices must have the same length.

ยงPanics

This method panics if the slices have different lengths.