Enum ratatui_textarea::Key
source · #[non_exhaustive]pub enum Key {
}
Expand description
Backend-agnostic key input kind.
This type is marked as #[non_exhaustive]
since more keys may be supported in the future.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Char(char)
Normal letter key input.
F(u8)
F1, F2, F3, … keys.
Backspace
Enter
Left
Right
Up
Down
Tab
Delete
Home
End
PageUp
PageDown
Esc
MouseScrollDown
Virtual key to scroll down by mouse
MouseScrollUp
Virtual key to scroll up by mouse
Null
An invalid key input (this key is always ignored by TextArea
).
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for Key
impl<'arbitrary> Arbitrary<'arbitrary> for Key
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moreimpl Copy for Key
Auto Trait Implementations§
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnwindSafe for Key
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