pub trait ZeroOne: Sized {
    fn zero() -> Self;
fn one() -> Self; }
Expand description

A trait defining how to obtain 0 and 1 for every implementing type.

The boilerplate implementations for primitives is performed with a macro. If a primitive type is missing from this list, please open an issue to add it in.

Required methods

Implementations on Foreign Types

Implementors