Enum chargrid_input::KeyboardInput
source · pub enum KeyboardInput {
Char(char),
Function(u8),
Up,
Down,
Left,
Right,
Home,
End,
PageUp,
PageDown,
Delete,
}
Variants§
Trait Implementations§
source§impl Clone for KeyboardInput
impl Clone for KeyboardInput
source§fn clone(&self) -> KeyboardInput
fn clone(&self) -> KeyboardInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for KeyboardInput
impl Debug for KeyboardInput
source§impl Hash for KeyboardInput
impl Hash for KeyboardInput
source§impl Ord for KeyboardInput
impl Ord for KeyboardInput
source§fn cmp(&self, other: &KeyboardInput) -> Ordering
fn cmp(&self, other: &KeyboardInput) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for KeyboardInput
impl PartialEq for KeyboardInput
source§fn eq(&self, other: &KeyboardInput) -> bool
fn eq(&self, other: &KeyboardInput) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for KeyboardInput
impl PartialOrd for KeyboardInput
source§fn partial_cmp(&self, other: &KeyboardInput) -> Option<Ordering>
fn partial_cmp(&self, other: &KeyboardInput) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for KeyboardInput
impl Eq for KeyboardInput
impl StructuralPartialEq for KeyboardInput
Auto Trait Implementations§
impl RefUnwindSafe for KeyboardInput
impl Send for KeyboardInput
impl Sync for KeyboardInput
impl Unpin for KeyboardInput
impl UnwindSafe for KeyboardInput
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