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

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

Zero values.

Required Associated Constants§

The value 0.

Provided Methods§

Determine if this value is equal to zero.

Returns

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

Implementors§