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<T> SignumProperty for &T
where T: SignumProperty + ?Sized,

Source§

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

Implementors§