pub struct u2(pub i8);
Expand description
The 2-bit unsigned integer type.
Tuple Fields§
§0: i8
Implementations§
Trait Implementations§
Source§impl BitAndAssign for u2
impl BitAndAssign for u2
Source§fn bitand_assign(&mut self, other: u2)
fn bitand_assign(&mut self, other: u2)
Performs the
&=
operation. Read moreSource§impl BitOrAssign for u2
impl BitOrAssign for u2
Source§fn bitor_assign(&mut self, other: u2)
fn bitor_assign(&mut self, other: u2)
Performs the
|=
operation. Read moreSource§impl BitXorAssign for u2
impl BitXorAssign for u2
Source§fn bitxor_assign(&mut self, other: u2)
fn bitxor_assign(&mut self, other: u2)
Performs the
^=
operation. Read moreSource§impl Ord for u2
impl Ord for u2
Source§impl PartialOrd for u2
impl PartialOrd for u2
Source§impl<T> ShlAssign<T> for u2
impl<T> ShlAssign<T> for u2
Source§fn shl_assign(&mut self, rhs: T)
fn shl_assign(&mut self, rhs: T)
Performs the
<<=
operation. Read moreSource§impl<T> ShrAssign<T> for u2
impl<T> ShrAssign<T> for u2
Source§fn shr_assign(&mut self, rhs: T)
fn shr_assign(&mut self, rhs: T)
Performs the
>>=
operation. Read moreimpl Copy for u2
impl Eq 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 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