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