Trait paired::Signum0 [−][src]
pub trait Signum0: Field { fn sgn0(&self) -> Sgn0Result; fn negate_if(&mut self, sgn: Sgn0Result) { ... } }
Expand description
Signum computations and conditional in-place negation.
Required methods
fn sgn0(&self) -> Sgn0Result
[src]
fn sgn0(&self) -> Sgn0Result
[src]Returns either Negative or NonNegative.
Provided methods
fn negate_if(&mut self, sgn: Sgn0Result)
[src]
fn negate_if(&mut self, sgn: Sgn0Result)
[src]Negate if the argument is Negative.