#[repr(u8)]pub enum Sign {
Plus = 0,
Minus = 1,
}Expand description
A Sign represents sign associated with a decimal number.
Variants§
Implementations§
Source§impl Sign
impl Sign
Sourcepub const fn is_negative(self) -> bool
pub const fn is_negative(self) -> bool
Returns true if sign is negative, and false otherwise.
Sourcepub const fn eq(&self, other: &Self) -> bool
pub const fn eq(&self, other: &Self) -> bool
Tests for self and other signs to be equal, and is used by ==
operator.
Trait Implementations§
impl Copy for Sign
impl Eq 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 UnsafeUnpin 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