pub trait NonZeroSigned: NonZero + Signed {
    // Required method
    fn non_zero_signum(&self) -> NonZeroSign;

    // Provided methods
    fn non_zero_is_positive(&self) -> bool { ... }
    fn non_zero_is_negative(&self) -> bool { ... }
}
Expand description

A signed number that can have a nonzero value.

Required Methods§

source

fn non_zero_signum(&self) -> NonZeroSign

Whether the value is positive or negative.

Provided Methods§

source

fn non_zero_is_positive(&self) -> bool

Whether x > 0.

source

fn non_zero_is_negative(&self) -> bool

Whether x < 0.

Implementors§