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.
Required Associated Types§
Required Methods§
fn saturating_neg(self) -> Self::Output
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".