Enum ModifierKeyCode
pub enum ModifierKeyCode {
LeftShift,
RightShift,
LeftControl,
RightControl,
LeftAlt,
RightAlt,
LeftMeta,
RightMeta,
Unknown,
}Expand description
A modifier key pressed on its own, distinguishing the left and right sides.
Mirrors crossterm::event::ModifierKeyCode. Modifiers reports which
modifiers were held during another keypress; this reports the modifier key
itself being pressed or released.
Variants§
LeftShift
Left Shift.
RightShift
Right Shift.
LeftControl
Left Control.
RightControl
Right Control.
LeftAlt
Left Alt.
RightAlt
Right Alt (AltGr).
LeftMeta
Left Meta / Super / Windows.
RightMeta
Right Meta / Super / Windows.
Unknown
A modifier key not defined in this protocol minor version.
Trait Implementations§
§impl Clone for ModifierKeyCode
impl Clone for ModifierKeyCode
§fn clone(&self) -> ModifierKeyCode
fn clone(&self) -> ModifierKeyCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ModifierKeyCode
§impl Debug for ModifierKeyCode
impl Debug for ModifierKeyCode
§impl<'de> Deserialize<'de> for ModifierKeyCode
impl<'de> Deserialize<'de> for ModifierKeyCode
§fn 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
impl Eq for ModifierKeyCode
§impl PartialEq for ModifierKeyCode
impl PartialEq for ModifierKeyCode
§impl Serialize for ModifierKeyCode
impl Serialize 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 UnsafeUnpin 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