Trait statistics::Real [] [src]

pub trait Real: Copy + Add<Output = Self> + Div<Output = Self> + Mul<Output = Self> + Sub<Output = Self> {
    fn one() -> Self;
    fn zero() -> Self;
    fn from_natural(_: usize) -> Self;
}

A real number.

Required Methods

Return the unity.

Return the zero.

Create a real number from a natural one.

Implementors