pub trait SignumProperty {
// Required methods
fn is_negative_property(&self) -> bool;
fn is_positive_property(&self) -> bool;
}Expand description
A property of numeric types that can have negative and positive values.
Required Methods§
Sourcefn is_negative_property(&self) -> bool
fn is_negative_property(&self) -> bool
Returns whether this value is negative.
Sourcefn is_positive_property(&self) -> bool
fn is_positive_property(&self) -> bool
Returns whether this value is positive.