pairing_plus::signum

Trait Signum0

Source
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§

Source

fn sgn0(&self) -> Sgn0Result

Returns either Negative or NonNegative

Provided Methods§

Source

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.

Implementors§