Trait crypto_bigint::Zero

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

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

Zero values.

Required Associated Constants§

source

const ZERO: Self

The value 0.

Provided Methods§

source

fn is_zero(&self) -> Choice

Determine if this value is equal to zero.

Returns

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

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Zero for Limb

source§

const ZERO: Self = Self::ZERO

source§

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

source§

const ZERO: Self = Self::ZERO

source§

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

source§

const ZERO: Self = _

source§

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

source§

const ZERO: Self = Self::ZERO