pub trait Signum0: Field {
// Required method
fn sgn0(&self) -> Sgn0Result;
// Provided method
fn negate_if(&mut self, sgn: Sgn0Result) { ... }
}
Expand description
Signum computations and conditional in-place negation
Required Methods§
Sourcefn sgn0(&self) -> Sgn0Result
fn sgn0(&self) -> Sgn0Result
Returns either Negative or NonNegative
Provided Methods§
Sourcefn negate_if(&mut self, sgn: Sgn0Result)
fn negate_if(&mut self, sgn: Sgn0Result)
Negate if the argument is Negative
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.