pub trait Zero {
    type Boolean: BooleanTrait;

    // Required methods
    fn zero() -> Self
       where Self: Sized;
    fn is_zero(&self) -> Self::Boolean;
}
Expand description

Representation of the zero value.

Required Associated Types§

Required Methods§

source

fn zero() -> Selfwhere Self: Sized,

Returns a new zero constant.

source

fn is_zero(&self) -> Self::Boolean

Returns true if self is zero.

Implementors§