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
Provided methods
fn is_positive(&self) -> bool
fn is_positive(&self) -> bool
Whether the number is (strictly) greater than zero.
fn is_negative(&self) -> bool
fn is_negative(&self) -> bool
Whether the number is (strictly) smaller than zero.