pub struct Lcd {
pub pixels: Vec<Vec<bool>>,
/* private fields */
}Expand description
A snapshot of the LCD pixels.
Fields§
§pixels: Vec<Vec<bool>>Rows of pixels, true = dark, each Lcd::width long: 131x64 on
the 48-family models, 131x16 on the Pioneers, 137x32 on the 28S
(see crate::Model::lcd_size).
Implementations§
Source§impl Lcd
impl Lcd
Sourcepub fn blank_rows(rows: usize) -> Self
pub fn blank_rows(rows: usize) -> Self
A blank display of rows rows of 131 pixels.
Sourcepub fn blank_sized(width: usize, rows: usize) -> Self
pub fn blank_sized(width: usize, rows: usize) -> Self
A blank display of width x rows pixels.
Sourcepub fn to_text(&self) -> String
pub fn to_text(&self) -> String
One line of Lcd::width characters per row (131 by 64, 131 by
16 on the Pioneers, 137 by 32 on the 28S), # for a dark pixel
and . for a light one, each line ended by \n.
Trait Implementations§
impl Eq for Lcd
impl StructuralPartialEq for Lcd
Auto Trait Implementations§
impl Forget for Lcd
impl Freeze for Lcd
impl Move for Lcd
impl RefUnwindSafe for Lcd
impl Send for Lcd
impl Sync for Lcd
impl Unpin for Lcd
impl UnsafeUnpin for Lcd
impl UnwindSafe for Lcd
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