Struct Config

Source
pub struct Config { /* private fields */ }
Expand description

Config is the init config of a Lcd

Implementations§

Source§

impl Config

Source

pub fn get_backlight(&self) -> State

Source

pub fn set_backlight(self, backlight: State) -> Self

Source

pub fn get_data_width(&self) -> DataWidth

Source

pub fn set_data_width(self, data_width: DataWidth) -> Self

Source

pub fn get_line_mode(&self) -> LineMode

Source

pub fn set_line_mode(self, line_mode: LineMode) -> Self

Source

pub fn get_line_capacity(&self) -> u8

Source

pub fn get_font(&self) -> Font

Source

pub fn set_font(self, font: Font) -> Self

Source

pub fn get_display_state(&self) -> State

Source

pub fn set_display_state(self, display: State) -> Self

Source

pub fn get_cursor_state(&self) -> State

Source

pub fn set_cursor_state(self, cursor: State) -> Self

Source

pub fn get_direction(&self) -> MoveDirection

Source

pub fn set_direction(self, dir: MoveDirection) -> Self

Source

pub fn get_shift_type(&self) -> ShiftType

Source

pub fn set_shift_type(self, shift: ShiftType) -> Self

Source

pub fn get_cursor_pos(&self) -> (u8, u8)

Source

pub fn set_cursor_pos(self, pos: (u8, u8)) -> Self

Source

pub fn get_display_offset(&self) -> u8

Source

pub fn set_display_offset(self, offset: u8) -> Self

Source

pub fn get_ram_type(&self) -> RAMType

Source

pub fn set_ram_type(self, ram_type: RAMType) -> Self

Trait Implementations§

Source§

impl Default for Config

Source§

fn default() -> Config

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl Freeze for Config

§

impl RefUnwindSafe for Config

§

impl Send for Config

§

impl Sync for Config

§

impl Unpin for Config

§

impl UnwindSafe for Config

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.