Enum relp_num::NonZeroSign [−][src]
pub enum NonZeroSign { Positive, Negative, }
Expand description
Sign of a nonzero value.
Existing Sign
traits, such in num
, typically have a third value for the sign of 0. Working
with that trait creates many branches or match cases that should never be possible.
Variants
x > 0
x < 0
Trait Implementations
Performs the conversion.
Performs the *=
operation. Read more
Whether the value is not equal to zero. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for NonZeroSign
impl Send for NonZeroSign
impl Sync for NonZeroSign
impl Unpin for NonZeroSign
impl UnwindSafe for NonZeroSign
Blanket Implementations
Mutably borrows from an owned value. Read more