pub trait ZeroChoice: Default + Clone + PartialEq + Eq + Copy + DecideZero<NonZero> + DecideZero<Zero> + DecideZero<Self, Out = Self> + Hash + Ord + PartialOrd + 'static {
    // Required method
    fn is_zero() -> bool;
}
Expand description

A marker trait implemented by Zero and NonZero.

Note it is rarely useful to define a function over any Z: ZeroChoice. This trait mostly just exists for consistency.

Required Methods§

source

fn is_zero() -> bool

Returns whether the type is Zero

Object Safety§

This trait is not object safe.

Implementors§