[][src]Trait slp::Number

pub trait Number: Clone + Send + Sync + One + Zero + FromStr + Neg<Output = Self> + Add<Output = Self> + Sub<Output = Self> + Mul<Output = Self> + Div<Output = Self> + AddAssign + SubAssign + MulAssign + DivAssign + PartialOrd + Debug + Display {
    fn floor(&self) -> Self;
fn ceil(&self) -> Self;
fn is_integer(&self) -> bool; }

Number trait used in this library.

Required methods

fn floor(&self) -> Self

Returns greatest integer less than or equal to.

fn ceil(&self) -> Self

Returns least integer greater than or equal to.

fn is_integer(&self) -> bool

Checks if it is an integer.

Loading content...

Implementations on Foreign Types

impl Number for f32[src]

impl Number for f64[src]

Loading content...

Implementors

impl Number for Ratio<BigInt>[src]

impl Number for Rational32[src]

impl Number for Rational64[src]

impl Number for Rational[src]

Loading content...