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

Implementors§

source§

impl Zero for Limb

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