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]

Returns either Negative or NonNegative.

Provided methods

fn negate_if(&mut self, sgn: Sgn0Result)[src]

Negate if the argument is Negative.

Implementors

impl Signum0 for Fq2[src]

fn sgn0(&self) -> Sgn0Result[src]

impl Signum0 for Fq[src]

fn sgn0(&self) -> Sgn0Result[src]