[][src]Trait maths_traits::analysis::ordered::Signed

pub trait Signed: PartialOrd + Zero {
    fn positive(&self) -> bool;
fn negative(&self) -> bool;
fn non_negative(&self) -> bool;
fn non_positive(&self) -> bool; }

Helpful methods for measuring an element's order relative to 0

Required methods

fn positive(&self) -> bool

If this element is strictly greater than zero

fn negative(&self) -> bool

If this element is strictly less than zero

fn non_negative(&self) -> bool

If this element is greater than or equal to zero

fn non_positive(&self) -> bool

If this element is less than or equal to zero

Loading content...

Implementors

impl<G: PartialOrd + Zero> Signed for G[src]

Auto-implemented using default to allow for specialization if desired

Loading content...