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

A trait pretty much similar to num_traits::Zero, but without the need of implementing Add.

Required methods

Returns the zero value.

Returns whether this value is zero.

Implementors