#[repr(u8)]pub enum U3 {
B000 = 0,
B001 = 1,
B010 = 2,
B011 = 3,
B100 = 4,
B101 = 5,
B110 = 6,
B111 = 7,
}
Variants§
Implementations§
Source§impl U3
impl U3
Sourcepub unsafe fn from_u8_unchecked(other: u8) -> Self
pub unsafe fn from_u8_unchecked(other: u8) -> Self
Constructs the value without a range check.
Sourcepub unsafe fn from_u16_unchecked(other: u16) -> Self
pub unsafe fn from_u16_unchecked(other: u16) -> Self
Constructs the value without a range check.
Sourcepub unsafe fn from_u32_unchecked(other: u32) -> Self
pub unsafe fn from_u32_unchecked(other: u32) -> Self
Constructs the value without a range check.
Sourcepub unsafe fn from_usize_unchecked(other: usize) -> Self
pub unsafe fn from_usize_unchecked(other: usize) -> Self
Constructs the value without a range check.
Sourcepub fn into_usize(self) -> usize
pub fn into_usize(self) -> usize
Returns the value as an usize.
Trait Implementations§
impl Copy for U3
impl Eq for U3
impl StructuralPartialEq for U3
Auto Trait Implementations§
impl Freeze for U3
impl RefUnwindSafe for U3
impl Send for U3
impl Sync for U3
impl Unpin for U3
impl UnwindSafe for U3
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