pub trait SaturatingNeg {
type Output;
// Required method
fn saturating_neg(self) -> Self::Output;
}Expand description
Negation operator which returns the closest possible value in the event of an overflow or underflow.
pub trait SaturatingNeg {
type Output;
// Required method
fn saturating_neg(self) -> Self::Output;
}Negation operator which returns the closest possible value in the event of an overflow or underflow.