Trait relp_num::Signed[][src]

pub trait Signed {
    fn signum(&self) -> Sign;

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

Signed numbers

A number that is positive, negative or zero.

Required methods

Returns the sign of the number.

Provided methods

Whether the number is (strictly) greater than zero.

Whether the number is (strictly) smaller than zero.

Implementations on Foreign Types

Implementors