[][src]Trait paired::Signum0

pub trait Signum0: Field {
    fn sgn0(&self) -> Sgn0Result;

    fn negate_if(&mut self, sgn: Sgn0Result) { ... }
}

Signum computations and conditional in-place negation.

Required methods

fn sgn0(&self) -> Sgn0Result

Returns either Negative or NonNegative.

Loading content...

Provided methods

fn negate_if(&mut self, sgn: Sgn0Result)

Negate if the argument is Negative.

Loading content...

Implementors

impl Signum0 for Fq2[src]

impl Signum0 for Fq[src]

Loading content...