pub trait Zero {
    fn zero() -> Self;
    fn is_zero(&self) -> bool;
}
Expand description

A trait for values that can be zero.

Required Methods

Returns the zero value.

Returns whether the value is zero.

Implementors