pub enum Sign {
Positive,
Negative,
NoSign,
}Expand description
Sign indicating postivity of a value.
Variants§
Implementations§
Source§impl Sign
impl Sign
Sourcepub fn is_positive(self) -> bool
pub fn is_positive(self) -> bool
Return true if the enum value is positive, false otherwise.
Sourcepub fn is_negative(self) -> bool
pub fn is_negative(self) -> bool
Return true if the enum value is negative, false otherwise.
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