pub(crate) enum Signum {
Negative = -1,
Zero = 0,
Positive = 1,
}
Expand description
The sign of a number (mathematically, sgn(x)). Although in a one’s-complement system all values have a sign, we treat zero specially in order to simplify working with native types and one’s-complement types together.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Signum
impl RefUnwindSafe for Signum
impl Send for Signum
impl Sync for Signum
impl Unpin for Signum
impl UnwindSafe for Signum
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more