Enum yacll::input::KeyEventKind
source · pub enum KeyEventKind {
Press,
Repeat,
Release,
}
Expand description
Represents a keyboard event kind.
Variants
Press
Repeat
Release
Trait Implementations
sourceimpl Clone for KeyEventKind
impl Clone for KeyEventKind
sourcefn clone(&self) -> KeyEventKind
fn clone(&self) -> KeyEventKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for KeyEventKind
impl Debug for KeyEventKind
sourceimpl Hash for KeyEventKind
impl Hash for KeyEventKind
sourceimpl PartialEq<KeyEventKind> for KeyEventKind
impl PartialEq<KeyEventKind> for KeyEventKind
sourcefn eq(&self, other: &KeyEventKind) -> bool
fn eq(&self, other: &KeyEventKind) -> bool
sourceimpl PartialOrd<KeyEventKind> for KeyEventKind
impl PartialOrd<KeyEventKind> for KeyEventKind
sourcefn partial_cmp(&self, other: &KeyEventKind) -> Option<Ordering>
fn partial_cmp(&self, other: &KeyEventKind) -> Option<Ordering>
1.0.0 · sourcefn 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 KeyEventKind
impl Eq for KeyEventKind
impl StructuralEq for KeyEventKind
impl StructuralPartialEq for KeyEventKind
Auto Trait Implementations
impl RefUnwindSafe for KeyEventKind
impl Send for KeyEventKind
impl Sync for KeyEventKind
impl Unpin for KeyEventKind
impl UnwindSafe for KeyEventKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more