#[repr(u8)]pub enum SegmentBits {
SegA = 1,
SegB = 2,
SegC = 4,
SegD = 8,
SegE = 16,
SegF = 32,
SegG = 64,
Dot = 128,
}
Expand description
Maps the segment from the device to its bit.
Variants§
SegA = 1
A segment
SegB = 2
B segment
SegC = 4
C segment
SegD = 8
D segment
SegE = 16
E segment
SegF = 32
F segment
SegG = 64
G segment
Dot = 128
Double point or dot
§Usage
Or
this bit with the other bits to display the dot.Or
this bit with the bit responsible for displaying the double point. Often second position on a 4-digit display.
Implementations§
Trait Implementations§
Source§impl Clone for SegmentBits
impl Clone for SegmentBits
Source§fn clone(&self) -> SegmentBits
fn clone(&self) -> SegmentBits
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 SegmentBits
impl Debug for SegmentBits
Source§impl Format for SegmentBits
impl Format for SegmentBits
impl Copy for SegmentBits
Auto Trait Implementations§
impl Freeze for SegmentBits
impl RefUnwindSafe for SegmentBits
impl Send for SegmentBits
impl Sync for SegmentBits
impl Unpin for SegmentBits
impl UnwindSafe for SegmentBits
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