#[repr(i8)]pub enum Wrap {
Negative = -1,
None = 0,
Positive = 1,
}Expand description
Wrap classification
Variants§
Negative = -1
A wrap occured in the negative direction
None = 0
No wrap, the wrapped difference between successive values has the same sign as their comparison
Positive = 1
A wrap occurred in the positive direction
Trait Implementations§
Source§impl AddAssign for Wrap
impl AddAssign for Wrap
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moreimpl Copy for Wrap
impl Eq for Wrap
Source§impl Ord for Wrap
impl Ord for Wrap
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Wrap
impl PartialOrd for Wrap
impl StructuralPartialEq for Wrap
Auto Trait Implementations§
impl Freeze for Wrap
impl RefUnwindSafe for Wrap
impl Send for Wrap
impl Sync for Wrap
impl Unpin for Wrap
impl UnsafeUnpin for Wrap
impl UnwindSafe for Wrap
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