pub trait Number: PartialOrd + Clone + Add<Output = Self> + Sub<Output = Self> + Div<Output = Self> + Mul<Output = Self> + Neg<Output = Self> {
    fn abs(&self) -> Self;
    fn inv(&self) -> Self;
    fn is_zero(&self) -> bool;
}

Required Methods

Returns the absolute value of the input. x.abs() := |a|

Returns the reciprocal of the input. x.inv() := 1/x

Returns true if the input is zero. x.is_zero() := x=0

Implementations on Foreign Types

Implementors