pub enum KeyEvent {
OnKeyPress(u8),
OnAnyKeyPress,
OnEnter,
}
Expand description
This enum represents key events which could be caused by the user.
Represents a specific key press.
Represents a key press from any key.
Represents a key press from enter.
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.