pub trait InvertOrZero {
// Required method
fn invert_or_zero(self) -> Self;
}
Expand description
Value that can be inverted
Required Methods§
Sourcefn invert_or_zero(self) -> Self
fn invert_or_zero(self) -> Self
Returns the inverted value or zero in case when self
is zero
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.