crypto_bigint

Trait 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).

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§

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