pub trait Zero: ConstantTimeEq + Sized {
    const ZERO: Self;

    // Provided method
    fn is_zero(&self) -> Choice { ... }
}
Expand description

Zero values.

Required Associated Constants§

const ZERO: Self

The value 0.

Provided Methods§

fn is_zero(&self) -> Choice

Determine if this value is equal to zero.

Returns

If zero, returns Choice(1). Otherwise, returns Choice(0).

Implementors§

§

impl Zero for Limb

§

const ZERO: Limb = Self::ZERO

§

impl<MOD, const LIMBS: usize> Zero for Residue<MOD, LIMBS>where MOD: ResidueParams<LIMBS>,

§

const ZERO: Residue<MOD, LIMBS> = Self::ZERO

§

impl<T> Zero for Wrapping<T>where T: Zero,

§

const ZERO: Wrapping<T> = Self(T::ZERO)

§

impl<const LIMBS: usize> Zero for Uint<LIMBS>

§

const ZERO: Uint<LIMBS> = Self::ZERO