Enum bobbin_bits::U5
[−]
[src]
#[repr(u8)]pub enum U5 { B00000, B00001, B00010, B00011, B00100, B00101, B00110, B00111, B01000, B01001, B01010, B01011, B01100, B01101, B01110, B01111, B10000, B10001, B10010, B10011, B10100, B10101, B10110, B10111, B11000, B11001, B11010, B11011, B11100, B11101, B11110, B11111, }
Variants
B00000
B00001
B00010
B00011
B00100
B00101
B00110
B00111
B01000
B01001
B01010
B01011
B01100
B01101
B01110
B01111
B10000
B10001
B10010
B10011
B10100
B10101
B10110
B10111
B11000
B11001
B11010
B11011
B11100
B11101
B11110
B11111
Methods
impl U5
[src]
fn value(&self) -> u8
[src]
Returns the primitive representation of the value.
unsafe fn from_u8_unchecked(other: u8) -> Self
[src]
Constructs the value without a range check.
unsafe fn from_u16_unchecked(other: u16) -> Self
[src]
Constructs the value without a range check.
unsafe fn from_u32_unchecked(other: u32) -> Self
[src]
Constructs the value without a range check.
unsafe fn from_usize_unchecked(other: usize) -> Self
[src]
Constructs the value without a range check.
fn into_u8(self) -> u8
[src]
Returns the value as an u8.
fn into_u16(self) -> u16
[src]
Returns the value as an u16.
fn into_u32(self) -> u32
[src]
Returns the value as an u32.
fn into_usize(self) -> usize
[src]
Returns the value as an usize.
fn into_i32(self) -> i32
[src]
Returns the value as an i32.
Trait Implementations
impl PartialEq for U5
[src]
fn eq(&self, __arg_0: &U5) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for U5
[src]
impl Clone for U5
[src]
fn clone(&self) -> U5
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for U5
[src]
impl From<u8> for U5
[src]
impl From<u16> for U5
[src]
impl From<u32> for U5
[src]
impl From<usize> for U5
[src]
impl From<i32> for U5
[src]
impl PartialEq<i32> for U5
[src]
fn eq(&self, other: &i32) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Debug for U5
[src]
impl Display for U5
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more