#[repr(u8)]pub enum U5 {
Show 32 variants
B00000 = 0,
B00001 = 1,
B00010 = 2,
B00011 = 3,
B00100 = 4,
B00101 = 5,
B00110 = 6,
B00111 = 7,
B01000 = 8,
B01001 = 9,
B01010 = 10,
B01011 = 11,
B01100 = 12,
B01101 = 13,
B01110 = 14,
B01111 = 15,
B10000 = 16,
B10001 = 17,
B10010 = 18,
B10011 = 19,
B10100 = 20,
B10101 = 21,
B10110 = 22,
B10111 = 23,
B11000 = 24,
B11001 = 25,
B11010 = 26,
B11011 = 27,
B11100 = 28,
B11101 = 29,
B11110 = 30,
B11111 = 31,
}
Variants§
B00000 = 0
B00001 = 1
B00010 = 2
B00011 = 3
B00100 = 4
B00101 = 5
B00110 = 6
B00111 = 7
B01000 = 8
B01001 = 9
B01010 = 10
B01011 = 11
B01100 = 12
B01101 = 13
B01110 = 14
B01111 = 15
B10000 = 16
B10001 = 17
B10010 = 18
B10011 = 19
B10100 = 20
B10101 = 21
B10110 = 22
B10111 = 23
B11000 = 24
B11001 = 25
B11010 = 26
B11011 = 27
B11100 = 28
B11101 = 29
B11110 = 30
B11111 = 31
Implementations§
Source§impl U5
impl U5
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 U5
impl Eq for U5
impl StructuralPartialEq for U5
Auto Trait Implementations§
impl Freeze for U5
impl RefUnwindSafe for U5
impl Send for U5
impl Sync for U5
impl Unpin for U5
impl UnwindSafe for U5
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