pub trait WrappingNeg {
type Output;
// Required method
fn wrapping_neg(self) -> Self::Output;
}Expand description
Negation operator which wraps around the type’s boundaries in case of overflow or underflow.
pub trait WrappingNeg {
type Output;
// Required method
fn wrapping_neg(self) -> Self::Output;
}Negation operator which wraps around the type’s boundaries in case of overflow or underflow.