pub trait RealInstance: PartialEq + PartialOrd + Sized {
    const ONE: Self;
    const ZERO: Self;

    fn is_positive(&self) -> bool { ... }
    fn is_negative(&self) -> bool { ... }
    fn is_zero(&self) -> bool { ... }
}
Expand description

Defines common operations on real (i.e. not Complex) numbers.

Required Associated Constants

Provided Methods

Implementors