pub enum u2 {
_0,
_1,
_2,
_3,
}Expand description
Two-bit type used during decoding
Use of an enum rather than a numeric primitive type makes it easier to match on.
Variants§
Trait Implementations§
Source§impl Ord for u2
impl Ord for u2
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 u2
impl PartialOrd for u2
impl Copy for u2
impl Eq for u2
impl StructuralPartialEq for u2
Auto Trait Implementations§
impl Freeze for u2
impl RefUnwindSafe for u2
impl Send for u2
impl Sync for u2
impl Unpin for u2
impl UnsafeUnpin for u2
impl UnwindSafe for u2
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