pub enum Sign {
Positive,
Negative,
}
Expand description
Represents the sign of a big int; either Positive or Negative.
use big_int::prelude::*;
let mut a: Tight<10> = 18.into();
let s = a.sign();
assert_eq!(s, Positive);
a *= (-1).into();
let s = a.sign();
assert_eq!(s, Negative);
Variants§
Trait Implementations§
impl Copy for Sign
impl Eq for Sign
impl StructuralPartialEq for Sign
Auto Trait Implementations§
impl Freeze for Sign
impl RefUnwindSafe for Sign
impl Send for Sign
impl Sync for Sign
impl Unpin for Sign
impl UnwindSafe for Sign
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