thirtyfour::prelude

Enum Key

Source
pub enum Key {
Show 56 variants Null, Cancel, Help, Backspace, Tab, Clear, Return, Enter, Shift, Control, Alt, Pause, Escape, Space, PageUp, PageDown, End, Home, Left, Up, Right, Down, Insert, Delete, Semicolon, Equals, NumPad0, NumPad1, NumPad2, NumPad3, NumPad4, NumPad5, NumPad6, NumPad7, NumPad8, NumPad9, Multiply, Add, Separator, Subtract, Decimal, Divide, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, Meta, Command,
}
Expand description

Key codes for use with Actions.

Variants§

§

Null

Null

§

Cancel

Cancel

§

Help

Help

§

Backspace

Backspace key

§

Tab

Tab key

§

Clear

Clear

§

Return

Return key

§

Enter

Enter key

§

Shift

Shift key

§

Control

Control key

§

Alt

Alt key

§

Pause

Pause key

§

Escape

Escape key

§

Space

Space bar

§

PageUp

Page Up key

§

PageDown

Page Down key

§

End

End key

§

Home

Home key

§

Left

Left arrow key

§

Up

Up arrow key

§

Right

Right arrow key

§

Down

Down arrow key

§

Insert

Insert key

§

Delete

Delete key

§

Semicolon

Semicolon key

§

Equals

Equals key

§

NumPad0

Numpad 0 key

§

NumPad1

Numpad 1 key

§

NumPad2

Numpad 2 key

§

NumPad3

Numpad 3 key

§

NumPad4

Numpad 4 key

§

NumPad5

Numpad 5 key

§

NumPad6

Numpad 6 key

§

NumPad7

Numpad 7 key

§

NumPad8

Numpad 8 key

§

NumPad9

Numpad 9 key

§

Multiply

Multiply key

§

Add

Add key

§

Separator

Separator key

§

Subtract

Subtract key

§

Decimal

Decimal key

§

Divide

Divide key

§

F1

F1 key

§

F2

F2 key

§

F3

F3 key

§

F4

F4 key

§

F5

F5 key

§

F6

F6 key

§

F7

F7 key

§

F8

F8 key

§

F9

F9 key

§

F10

F10 key

§

F11

F11 key

§

F12

F12 key

§

Meta

Meta key

§

Command

Command key

Trait Implementations§

Source§

impl Add<&str> for Key

Source§

type Output = String

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &str) -> <Key as Add<&str>>::Output

Performs the + operation. Read more
Source§

impl Add<Key> for &str

Source§

type Output = String

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Key) -> <&str as Add<Key>>::Output

Performs the + operation. Read more
Source§

impl Add<Key> for String

Source§

type Output = String

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Key) -> <String as Add<Key>>::Output

Performs the + operation. Read more
Source§

impl Add<String> for Key

Source§

type Output = String

The resulting type after applying the + operator.
Source§

fn add(self, rhs: String) -> <Key as Add<String>>::Output

Performs the + operation. Read more
Source§

impl Add for Key

Source§

type Output = String

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Key) -> <Key as Add>::Output

Performs the + operation. Read more
Source§

impl AddAssign<Key> for String

Source§

fn add_assign(&mut self, rhs: Key)

Performs the += operation. Read more
Source§

impl Clone for Key

Source§

fn clone(&self) -> Key

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Key

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Display for Key

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Copy for Key

Auto Trait Implementations§

§

impl Freeze for Key

§

impl RefUnwindSafe for Key

§

impl Send for Key

§

impl Sync for Key

§

impl Unpin for Key

§

impl UnwindSafe for Key

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more