Function negate

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

Negates each value in src and stores the results in dst. Both slices must have the same length.

ยงPanics

This method panics if the slices have different lengths.