pub struct EntryModeBuilder { /* private fields */ }Expand description
A struct for creating display entry mode settings.
Implementations§
Source§impl EntryModeBuilder
impl EntryModeBuilder
Sourcepub fn set_move_direction(&mut self, direction: MoveDirection) -> &mut Self
pub fn set_move_direction(&mut self, direction: MoveDirection) -> &mut Self
Sets the direction the read/write cursor is moved when a character code is written to or read from the display.
Sourcepub fn set_display_shift(&mut self, shift: DisplayShift) -> &mut Self
pub fn set_display_shift(&mut self, shift: DisplayShift) -> &mut Self
Sets the display shift, which will be performed on character write, either On or Off.
If display shift is enabled, it will seem as if the cursor does not move but the display does.
Note: The display does not shift when reading.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EntryModeBuilder
impl RefUnwindSafe for EntryModeBuilder
impl Send for EntryModeBuilder
impl Sync for EntryModeBuilder
impl Unpin for EntryModeBuilder
impl UnwindSafe for EntryModeBuilder
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