Struct dimensioned::peano::Zero [] [src]

pub struct Zero;

Trait Implementations

impl Peano for Zero

impl NonNeg for Zero

impl NonPos for Zero

impl<RHS: Peano> AddPeano<RHS> for Zero

Adding things to zero (e.g. 0 + 3)

type Output = RHS

impl Negate for Zero

type Output = Zero

impl<RHS: Peano + Negate> SubPeano<RHS> for Zero

Subtracting from zero (e.g. 0 - 4)

type Output = RHS::Output

impl<RHS: Peano> MulPeano<RHS> for Zero

Multiplying zero by things (e.g. 0 * 7)

type Output = Zero

impl<RHS> DivPeano<RHS> for Zero where RHS: NonZero

type Output = Zero

impl ToInt for Zero

fn to_int() -> i32

Derived Implementations

impl Clone for Zero

fn clone(&self) -> Zero

fn clone_from(&mut self, source: &Self)

impl Copy for Zero