Function sub

Source
pub fn sub<T>(src1: &[T], src2: &[T], dst: &mut [T])
where T: Copy + Sub<T, Output = T>,
Expand description

Subtracts all values in src2 from src1 element-wise and stores the results in dst. All slices must have the same length.

ยงPanics

This method panics if the slices have different lengths.