pub enum Sign {
Positive,
Negative,
}
Expand description
An enum representing the sign of a number
A sign can be converted to or from a boolean value, assuming true
is Negative.
Variants§
Trait Implementations§
Source§impl MulAssign<Sign> for IBig
impl MulAssign<Sign> for IBig
Source§fn mul_assign(&mut self, rhs: Sign)
fn mul_assign(&mut self, rhs: Sign)
Performs the
*=
operation. Read moreSource§impl MulAssign for Sign
impl MulAssign for Sign
Source§fn mul_assign(&mut self, rhs: Sign)
fn mul_assign(&mut self, rhs: Sign)
Performs the
*=
operation. Read moreSource§impl Ord for Sign
impl Ord for Sign
Source§impl PartialOrd for Sign
impl PartialOrd for Sign
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