logo
pub trait Integer: 'static + AsRef<[Limb]> + Copy + ConditionallySelectable + ConstantTimeEq + ConstantTimeGreater + ConstantTimeLess + Debug + Default + Div<NonZero<Self>, Output = Self> + Encoding + Eq + From<u64> + Ord + Rem<NonZero<Self>, Output = Self> + Send + Sized + Sync {
    const ZERO: Self;
    const ONE: Self;
    const MAX: Self;

    fn is_odd(&self) -> Choice;

    fn is_zero(&self) -> Choice { ... }
    fn is_even(&self) -> Choice { ... }
}
Expand description

Integer type.

Required Associated Constants

The value 0.

The value 1.

Maximum value this integer can express.

Required Methods

Is this integer value an odd number?

Provided Methods

Is this integer value equal to zero?

Is this integer value an even number?

Implementors