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
sourceimpl Clone for ModifierKeyCode
impl Clone for ModifierKeyCode
sourcefn clone(&self) -> ModifierKeyCode
fn clone(&self) -> ModifierKeyCode
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 more
sourceimpl Debug for ModifierKeyCode
impl Debug for ModifierKeyCode
sourceimpl<'de> Deserialize<'de> for ModifierKeyCode
impl<'de> Deserialize<'de> for ModifierKeyCode
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Hash for ModifierKeyCode
impl Hash for ModifierKeyCode
sourceimpl PartialEq<ModifierKeyCode> for ModifierKeyCode
impl PartialEq<ModifierKeyCode> for ModifierKeyCode
sourceimpl PartialOrd<ModifierKeyCode> for ModifierKeyCode
impl PartialOrd<ModifierKeyCode> for ModifierKeyCode
sourcefn partial_cmp(&self, other: &ModifierKeyCode) -> Option<Ordering>
fn partial_cmp(&self, other: &ModifierKeyCode) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
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 more
sourceimpl Serialize for ModifierKeyCode
impl Serialize for ModifierKeyCode
impl Copy for ModifierKeyCode
impl Eq for ModifierKeyCode
impl StructuralEq for ModifierKeyCode
impl StructuralPartialEq for ModifierKeyCode
Auto Trait Implementations
impl RefUnwindSafe for ModifierKeyCode
impl Send for ModifierKeyCode
impl Sync for ModifierKeyCode
impl Unpin for ModifierKeyCode
impl UnwindSafe for ModifierKeyCode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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