pub enum Sign {
Positive,
Negative,
Zero,
}Variants§
Implementations§
Source§impl Sign
impl Sign
pub fn is_non_zero_positive(&self) -> bool
pub fn is_zero_or_positive(&self) -> bool
pub fn is_non_zero_negative(&self) -> bool
pub fn is_zero_or_negative(&self) -> bool
pub fn is_zero(&self) -> bool
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