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.
Implementations on Foreign Types§
Source§impl SignumProperty for f32
impl SignumProperty for f32
fn is_negative_property(&self) -> bool
fn is_positive_property(&self) -> bool
Source§impl SignumProperty for f64
impl SignumProperty for f64
fn is_negative_property(&self) -> bool
fn is_positive_property(&self) -> bool
Source§impl SignumProperty for i8
impl SignumProperty for i8
fn is_negative_property(&self) -> bool
fn is_positive_property(&self) -> bool
Source§impl SignumProperty for i16
impl SignumProperty for i16
fn is_negative_property(&self) -> bool
fn is_positive_property(&self) -> bool
Source§impl SignumProperty for i32
impl SignumProperty for i32
fn is_negative_property(&self) -> bool
fn is_positive_property(&self) -> bool
Source§impl SignumProperty for i64
impl SignumProperty for i64
fn is_negative_property(&self) -> bool
fn is_positive_property(&self) -> bool
Source§impl SignumProperty for i128
impl SignumProperty for i128
fn is_negative_property(&self) -> bool
fn is_positive_property(&self) -> bool
Source§impl SignumProperty for isize
impl SignumProperty for isize
fn is_negative_property(&self) -> bool
fn is_positive_property(&self) -> bool
Source§impl SignumProperty for BigDecimal
Available on crate feature bigdecimal only.
impl SignumProperty for BigDecimal
Available on crate feature
bigdecimal only.fn is_negative_property(&self) -> bool
fn is_positive_property(&self) -> bool
Source§impl SignumProperty for BigDecimalRef<'_>
Available on crate feature bigdecimal only.
impl SignumProperty for BigDecimalRef<'_>
Available on crate feature
bigdecimal only.fn is_negative_property(&self) -> bool
fn is_positive_property(&self) -> bool
Source§impl SignumProperty for BigInt
Available on crate feature num-bigint only.
impl SignumProperty for BigInt
Available on crate feature
num-bigint only.fn is_negative_property(&self) -> bool
fn is_positive_property(&self) -> bool
Source§impl SignumProperty for Decimal
Available on crate feature rust-decimal only.
impl SignumProperty for Decimal
Available on crate feature
rust-decimal only.