Enum crossterm::event::ModifierKeyCode
source · pub enum ModifierKeyCode {
Show 14 variants
LeftShift,
LeftControl,
LeftAlt,
LeftSuper,
LeftHyper,
LeftMeta,
RightShift,
RightControl,
RightAlt,
RightSuper,
RightHyper,
RightMeta,
IsoLevel3Shift,
IsoLevel5Shift,
}
Expand description
Represents a modifier key (as part of KeyCode::Modifier
).
Variants§
LeftShift
Left Shift key.
LeftControl
Left Control key.
LeftAlt
Left Alt key.
LeftSuper
Left Super key.
LeftHyper
Left Hyper key.
LeftMeta
Left Meta key.
RightShift
Right Shift key.
RightControl
Right Control key.
RightAlt
Right Alt key.
RightSuper
Right Super key.
RightHyper
Right Hyper key.
RightMeta
Right Meta key.
IsoLevel3Shift
Iso Level3 Shift key.
IsoLevel5Shift
Iso Level5 Shift key.
Trait Implementations§
source§impl Clone for ModifierKeyCode
impl Clone for ModifierKeyCode
source§fn clone(&self) -> ModifierKeyCode
fn clone(&self) -> ModifierKeyCode
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 ModifierKeyCode
impl Debug for ModifierKeyCode
source§impl Hash for ModifierKeyCode
impl Hash for ModifierKeyCode
source§impl PartialEq for ModifierKeyCode
impl PartialEq for ModifierKeyCode
source§fn eq(&self, other: &ModifierKeyCode) -> bool
fn eq(&self, other: &ModifierKeyCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ModifierKeyCode
impl PartialOrd for ModifierKeyCode
source§fn partial_cmp(&self, other: &ModifierKeyCode) -> Option<Ordering>
fn partial_cmp(&self, other: &ModifierKeyCode) -> 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 ModifierKeyCode
impl Eq for ModifierKeyCode
impl StructuralPartialEq for ModifierKeyCode
Auto Trait Implementations§
impl Freeze for ModifierKeyCode
impl RefUnwindSafe for ModifierKeyCode
impl Send for ModifierKeyCode
impl Sync for ModifierKeyCode
impl Unpin for ModifierKeyCode
impl UnwindSafe for ModifierKeyCode
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