Add

Trait Add 

Source
pub trait Add<Rhs: Number>: Number {
    type Output: Number;
}

Required Associated Types§

Implementors§

Source§

impl<N, Rhs, O> Add<Rhs> for Negative<N>
where Rhs: IsPositive + Number, N: Sub<Rhs, Output = O> + Number, O: Neg + Number,

Source§

type Output = <O as Neg>::Output

Source§

impl<N, Rhs, O: Number> Add<Rhs> for Successor<N>
where Rhs: IsPositive + Number, N: Add<Rhs, Output = O> + Number,

Source§

impl<N, Rhs: Number> Add<Negative<Rhs>> for Negative<N>
where N: Add<Rhs> + Number,

Source§

type Output = Negative<<N as Add<Rhs>>::Output>

Source§

impl<N: Number, Rhs: Number, O: Number> Add<Negative<Rhs>> for Successor<N>
where Successor<N>: Sub<Rhs, Output = O>,

Source§

impl<Rhs: Number> Add<Rhs> for Zero

Source§

type Output = Rhs