pub struct TUI<Interface: TUIInterface> { /* private fields */ }
Handles keyboard input, and updates state according to those key presses.
Down, Up => move the cursor up or down a line
Left, Right => move the cursor to the previous (resp. next) character on the current line
ESC, q => exit
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.