Trait relp_num::NonZeroSigned [−][src]
pub trait NonZeroSigned: NonZero + Clone { fn signum(&self) -> NonZeroSign; fn is_positive(&self) -> bool { ... } fn is_negative(&self) -> bool { ... } }
Expand description
A signed number that can have a nonzero value.
Required methods
fn signum(&self) -> NonZeroSign
fn signum(&self) -> NonZeroSign
Whether the value is positive or negative.
Provided methods
fn is_positive(&self) -> bool
fn is_positive(&self) -> bool
Whether x > 0
.
fn is_negative(&self) -> bool
fn is_negative(&self) -> bool
Whether x < 0
.