Function rsub_scalar

Source
pub fn rsub_scalar<T>(src: &[T], scalar: T, dst: &mut [T])
where T: Copy + Sub<T, Output = T>,
Expand description

Subtracts each element in src from a scalar value, storing the results in dst. All slices must have the same length.

ยงPanics

This method panics if the slices have different lengths.