#[repr(u8)]pub enum HexDigitBits {
Show 16 variants
Zero = 63,
One = 6,
Two = 91,
Three = 79,
Four = 102,
Five = 109,
Six = 125,
Seven = 7,
Eight = 127,
Nine = 111,
A = 119,
B = 124,
C = 57,
D = 94,
E = 121,
F = 113,
}
Expand description
Maps a hex digit to its closest possible representation on a 7-segment display.
Variants§
Zero = 63
0
One = 6
1
Two = 91
2
Three = 79
3
Four = 102
4
Five = 109
5
Six = 125
6
Seven = 7
7
Eight = 127
8
Nine = 111
9
A = 119
A
B = 124
b
C = 57
C
D = 94
d
E = 121
E
F = 113
F
Implementations§
Source§impl HexDigitBits
impl HexDigitBits
Sourcepub const fn all() -> [HexDigitBits; 16]
pub const fn all() -> [HexDigitBits; 16]
Returns all digits.
Sourcepub fn from_digit(digit: u8) -> Self
pub fn from_digit(digit: u8) -> Self
Creates a new HexDigitBits
from a u8
digit.
Trait Implementations§
Source§impl Clone for HexDigitBits
impl Clone for HexDigitBits
Source§fn clone(&self) -> HexDigitBits
fn clone(&self) -> HexDigitBits
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for HexDigitBits
impl Debug for HexDigitBits
Source§impl Format for HexDigitBits
impl Format for HexDigitBits
impl Copy for HexDigitBits
Auto Trait Implementations§
impl Freeze for HexDigitBits
impl RefUnwindSafe for HexDigitBits
impl Send for HexDigitBits
impl Sync for HexDigitBits
impl Unpin for HexDigitBits
impl UnwindSafe for HexDigitBits
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