Struct peano::Zero [] [src]

pub struct Zero;

The type corresponding to the Peano number 0.

Trait Implementations

impl Copy for Zero
[src]

impl Clone for Zero
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Peano for Zero
[src]

impl NonNeg for Zero
[src]

impl NonPos for Zero
[src]

impl<Rhs> Add<Rhs> for Zero where
    Rhs: Peano
[src]

Add to Zero (e.g. 0 + 3)

The resulting type after applying the + operator

The method for the + operator

impl Neg for Zero
[src]

The negation of Zero is itself.

The resulting type after applying the - operator

The method for the unary - operator

impl<Rhs> Sub<Rhs> for Zero where
    Rhs: Neg
[src]

Subtract from Zero (e.g. 0 - 4)

The resulting type after applying the - operator

The method for the - operator

impl<Rhs> Mul<Rhs> for Zero where
    Rhs: Peano
[src]

Multiply Zero by peano numbers (e.g. 0 * 7)

The resulting type after applying the * operator

The method for the * operator

impl<Rhs> Div<Rhs> for Zero where
    Rhs: Peano
[src]

Divide Zero by a number (e.g. 0 / 5)

The resulting type after applying the / operator

The method for the / operator

impl ToInt for Zero
[src]