pub struct SevenSegmentDisplay {
pub matrix_id: u8,
pub character_count: u8,
pub decimal_points: Vec<bool>,
}Expand description
7-Segment Display Helper
Fields§
§matrix_id: u8§character_count: u8§decimal_points: Vec<bool>Implementations§
Source§impl SevenSegmentDisplay
impl SevenSegmentDisplay
pub fn new(matrix_id: u8, character_count: u8) -> Self
pub fn display_number( &self, device: &mut PoKeysDevice, number: u32, ) -> Result<()>
pub fn display_text(&self, device: &mut PoKeysDevice, text: &str) -> Result<()>
pub fn display_mixed(&self, device: &mut PoKeysDevice, text: &str) -> Result<()>
pub fn set_decimal_point(&mut self, character: u8, enabled: bool)
Auto Trait Implementations§
impl Freeze for SevenSegmentDisplay
impl RefUnwindSafe for SevenSegmentDisplay
impl Send for SevenSegmentDisplay
impl Sync for SevenSegmentDisplay
impl Unpin for SevenSegmentDisplay
impl UnsafeUnpin for SevenSegmentDisplay
impl UnwindSafe for SevenSegmentDisplay
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