ModifierKeyCode

Enum ModifierKeyCode 

Source
#[repr(C)]
pub enum ModifierKeyCode {
Show 14 variants LeftShift = 0, LeftControl = 1, LeftAlt = 2, LeftSuper = 3, LeftHyper = 4, LeftMeta = 5, RightShift = 6, RightControl = 7, RightAlt = 8, RightSuper = 9, RightHyper = 10, RightMeta = 11, IsoLevel3Shift = 12, IsoLevel5Shift = 13,
}
Expand description

Represents a modifier key (as part of KeyCode::Modifier).

Variants§

§

LeftShift = 0

Left Shift key.

§

LeftControl = 1

Left Control key.

§

LeftAlt = 2

Left Alt key.

§

LeftSuper = 3

Left Super key.

§

LeftHyper = 4

Left Hyper key.

§

LeftMeta = 5

Left Meta key.

§

RightShift = 6

Right Shift key.

§

RightControl = 7

Right Control key.

§

RightAlt = 8

Right Alt key.

§

RightSuper = 9

Right Super key.

§

RightHyper = 10

Right Hyper key.

§

RightMeta = 11

Right Meta key.

§

IsoLevel3Shift = 12

Iso Level3 Shift key.

§

IsoLevel5Shift = 13

Iso Level5 Shift key.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.