Skip to main content

SignumProperty

Trait SignumProperty 

Source
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§

Source

fn is_negative_property(&self) -> bool

Returns whether this value is negative.

Source

fn is_positive_property(&self) -> bool

Returns whether this value is positive.

Implementations on Foreign Types§

Source§

impl SignumProperty for f32

Source§

impl SignumProperty for f64

Source§

impl SignumProperty for i8

Source§

impl SignumProperty for i16

Source§

impl SignumProperty for i32

Source§

impl SignumProperty for i64

Source§

impl SignumProperty for i128

Source§

impl SignumProperty for isize

Source§

impl SignumProperty for BigDecimal

Available on crate feature bigdecimal only.
Source§

impl SignumProperty for BigDecimalRef<'_>

Available on crate feature bigdecimal only.
Source§

impl SignumProperty for BigInt

Available on crate feature num-bigint only.
Source§

impl SignumProperty for Decimal

Available on crate feature rust-decimal only.
Source§

impl<T> SignumProperty for &T
where T: SignumProperty + ?Sized,

Source§

impl<T> SignumProperty for &mut T
where T: SignumProperty + ?Sized,

Implementors§