Enum alloy_primitives::Sign
source · #[repr(i8)]pub enum Sign {
Negative,
Positive,
}
Expand description
Enum to represent the sign of a 256-bit signed integer.
Variants§
Implementations§
source§impl Sign
impl Sign
sourcepub const fn is_positive(&self) -> bool
pub const fn is_positive(&self) -> bool
Returns whether the sign is positive.
sourcepub const fn is_negative(&self) -> bool
pub const fn is_negative(&self) -> bool
Returns whether the sign is negative.
Trait Implementations§
source§impl PartialEq<Sign> for Sign
impl PartialEq<Sign> for Sign
impl Copy for Sign
impl Eq for Sign
impl StructuralEq for Sign
impl StructuralPartialEq for Sign
Auto Trait Implementations§
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