Lcd

Struct Lcd 

Source
pub struct Lcd<TOP: LcdTopSideProvider + 'static> {
    pub current_screen: LcdScreenCurrent<TOP>,
    pub next_screen: LcdScreenNext,
    /* private fields */
}

Fields§

§current_screen: LcdScreenCurrent<TOP>§next_screen: LcdScreenNext

Implementations§

Source§

impl<TOP: LcdTopSideProvider + 'static> Lcd<TOP>

Source

pub fn new(font: &'static Font<TOP>) -> Self

Source

pub fn clear_pixels(&self)

Source

pub fn clear(&self)

Source

pub fn refresh(&self)

Source

pub fn draw_glyph(&self, c: GlyphCode, x: usize, y: usize)

Source

pub fn print_char(&self, x: usize, y: usize, c: char)

Source

pub fn print(&self, row: usize, text: &str)

Source

pub fn print_column(&self, column: usize, text: &str)

Source

pub fn print_value(&self, row: usize, column: usize, digits: usize, value: i32)

Source

pub fn print_value_signed( &self, row: usize, column: usize, digits: usize, value: i32, )

Source

pub fn bar_vertical(&self, column: usize, value: i32, limit: i32)

Source

pub fn bar_horizontal(&self, row: usize, value: i32, limit: i32)

Source

pub fn print_char_sub1(&self, x: usize, y: usize, c: char)

Source

pub fn print_sub1(&self, row: usize, text: &str)

Source

pub fn print_column_sub1(&self, column: usize, text: &str)

Source

pub fn print_value_sub1( &self, row: usize, column: usize, digits: usize, value: i32, )

Source

pub fn print_value_signed_sub1( &self, row: usize, column: usize, digits: usize, value: i32, )

Source

pub fn bar_horizontal_sub1(&self, row: usize, value: i32, limit: i32)

Source

pub fn bar_vertical_sub1(&self, column: usize, value: i32, limit: i32)

Source

pub fn print_char_sub2(&self, x: usize, y: usize, c: char)

Source

pub fn print_sub2(&self, row: usize, text: &str)

Source

pub fn print_column_sub2(&self, column: usize, text: &str)

Source

pub fn print_value_sub2( &self, row: usize, column: usize, digits: usize, value: i32, )

Source

pub fn print_value_signed_sub2( &self, row: usize, column: usize, digits: usize, value: i32, )

Source

pub fn bar_horizontal_sub2(&self, row: usize, value: i32, limit: i32)

Source

pub fn bar_vertical_sub2(&self, column: usize, value: i32, limit: i32)

Trait Implementations§

Source§

impl<TOP: LcdTopSideProvider + 'static> LcdTrait for Lcd<TOP>

Source§

fn clear(&self)

Source§

fn print_char(&self, x: usize, y: usize, c: char)

Source§

fn print(&self, row: usize, text: &str)

Source§

fn print_column(&self, column: usize, text: &str)

Source§

fn print_value(&self, row: usize, column: usize, digits: usize, value: i32)

Source§

fn print_value_signed( &self, row: usize, column: usize, digits: usize, value: i32, )

Source§

fn bar_vertical(&self, column: usize, value: i32, limit: i32)

Source§

fn bar_horizontal(&self, row: usize, value: i32, limit: i32)

Source§

fn print_char_sub1(&self, x: usize, y: usize, c: char)

Source§

fn print_sub1(&self, row: usize, text: &str)

Source§

fn print_column_sub1(&self, column: usize, text: &str)

Source§

fn print_value_sub1(&self, row: usize, column: usize, digits: usize, value: i32)

Source§

fn print_value_signed_sub1( &self, row: usize, column: usize, digits: usize, value: i32, )

Source§

fn bar_vertical_sub1(&self, column: usize, value: i32, limit: i32)

Source§

fn bar_horizontal_sub1(&self, row: usize, value: i32, limit: i32)

Source§

fn print_char_sub2(&self, x: usize, y: usize, c: char)

Source§

fn print_sub2(&self, row: usize, text: &str)

Source§

fn print_column_sub2(&self, column: usize, text: &str)

Source§

fn print_value_sub2(&self, row: usize, column: usize, digits: usize, value: i32)

Source§

fn print_value_signed_sub2( &self, row: usize, column: usize, digits: usize, value: i32, )

Source§

fn bar_vertical_sub2(&self, column: usize, value: i32, limit: i32)

Source§

fn bar_horizontal_sub2(&self, row: usize, value: i32, limit: i32)

Auto Trait Implementations§

§

impl<TOP> Freeze for Lcd<TOP>

§

impl<TOP> !RefUnwindSafe for Lcd<TOP>

§

impl<TOP> Send for Lcd<TOP>
where TOP: Send + Sync,

§

impl<TOP> Sync for Lcd<TOP>
where TOP: Sync,

§

impl<TOP> Unpin for Lcd<TOP>
where TOP: Unpin,

§

impl<TOP> UnwindSafe for Lcd<TOP>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.