gluten_keyboard

Enum Key

Source
pub enum Key {
Show 185 variants Unknown, Zero, One, Two, Three, Four, Five, Six, Seven, Eight, Nine, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, Accept, Add, Again, AllCandidates, Alphanumeric, Alt, AltGraph, Ampersand, Asterisk, BackQuote, BackSlash, Begin, BraceLeft, BraceRight, Cancel, CapsLock, Circumflex, Clear, BracketLeft, BracketRight, CodeInput, Colon, Comma, Compose, ContextMenu, LeftControl, RightControl, Convert, Copy, Cut, Decimal, Delete, Divide, Dollar, Down, End, Enter, Equals, Escape, EuroSign, ExclamationMark, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15, F16, F17, F18, F19, F20, F21, F22, F23, F24, Final, Find, FullWidth, Greater, HalfWidth, Help, Hiragana, Home, InputMethodOnOff, Insert, InvertedExclamationMark, JapaneseHiragana, JapaneseKatakana, JapaneseRoman, Kana, KanaLock, KpLeft, KpDown, KpRight, KpUp, Left, ParenthesisLeft, ParenthesisRight, Less, Meta, Minus, ModeChange, Multiply, DontConvert, NumLock, NumberSign, NumpadZero, NumpadOne, NumpadTwo, NumpadThree, NumpadFour, NumpadFive, NumpadSix, NumpadSeven, NumpadEight, NumpadNine, PageDown, PageUp, Paste, Pause, Period, Plus, PreviousCandidate, Props, Quote, DoubleQuote, Right, RomanCharacters, ScrollLock, Separator, LeftShift, RightShift, ShiftLock, LeftMeta, RightMeta, LeftAlt, RightAlt, LeftSuper, RightSuper, LeftHyper, RightHyper, Slash, Space, Stop, Subtract, Tab, Underscore, Undo, Up, Windows, Percent, Question, At, Tilde, Semicolon, Backquote, Bar, Backspace,
}
Expand description

A set of keys.

Variants§

§

Unknown

The Unknown key.

§

Zero

The Zero (0) key.

§

One

The One (1) key.

§

Two

The Two (2) key.

§

Three

The Three (3) key.

§

Four

The Four (4) key.

§

Five

The Five (5) key.

§

Six

The Six (6) key.

§

Seven

The Seven (7) key.

§

Eight

The Eight (8) key.

§

Nine

The Nine (9) key.

§

A

The A (A) key.

§

B

The B (B) key.

§

C

The C (C) key.

§

D

The D (D) key.

§

E

The E (E) key.

§

F

The F (F) key.

§

G

The G (G) key.

§

H

The H (H) key.

§

I

The I (I) key.

§

J

The J (J) key.

§

K

The K (K) key.

§

L

The L (L) key.

§

M

The M (M) key.

§

N

The N (N) key.

§

O

The O (O) key.

§

P

The P (P) key.

§

Q

The Q (Q) key.

§

R

The R (R) key.

§

S

The S (S) key.

§

T

The T (T) key.

§

U

The U (U) key.

§

V

The V (V) key.

§

W

The W (W) key.

§

X

The X (X) key.

§

Y

The Y (Y) key.

§

Z

The Z (Z) key.

§

Accept

The Accept key.

§

Add

The Add key.

§

Again

The Again key.

§

AllCandidates

The AllCandidates key.

§

Alphanumeric

The Alphanumeric key.

§

Alt

The Alt key.

§

AltGraph

The AltGraph key.

§

Ampersand

The Ampersand (&) key.

§

Asterisk

The Asterisk (*) key.

§

BackQuote

The BackQuote key.

§

BackSlash

The BackSlash () key.

§

Begin

The Begin key.

§

BraceLeft

The BraceLeft ({) key.

§

BraceRight

The BraceRight (}) key.

§

Cancel

The Cancel key.

§

CapsLock

The CapsLock key.

§

Circumflex

The Circumflex (^) key.

§

Clear

The Clear key.

§

BracketLeft

The BracketLeft ([) key.

§

BracketRight

The BracketRight (]) key.

§

CodeInput

The CodeInput key.

§

Colon

The Colon (:) key.

§

Comma

The Comma (,) key.

§

Compose

The Compose key.

§

ContextMenu

The ContextMenu key.

§

LeftControl

The LeftControl key.

§

RightControl

The RightControl key.

§

Convert

The Convert key.

§

Copy

The Copy key.

§

Cut

The Cut key.

§

Decimal

The Decimal key.

§

Delete

The Delete key.

§

Divide

The Divide key.

§

Dollar

The Dollar ($) key.

§

Down

The Down key.

§

End

The End key.

§

Enter

The Enter key.

§

Equals

The Equals (=) key.

§

Escape

The Escape key.

§

EuroSign

The EuroSign (€) key.

§

ExclamationMark

The ExclamationMark (!) key.

§

F1

The F1 key.

§

F2

The F2 key.

§

F3

The F3 key.

§

F4

The F4 key.

§

F5

The F5 key.

§

F6

The F6 key.

§

F7

The F7 key.

§

F8

The F8 key.

§

F9

The F9 key.

§

F10

The F10 key.

§

F11

The F11 key.

§

F12

The F12 key.

§

F13

The F13 key.

§

F14

The F14 key.

§

F15

The F15 key.

§

F16

The F16 key.

§

F17

The F17 key.

§

F18

The F18 key.

§

F19

The F19 key.

§

F20

The F20 key.

§

F21

The F21 key.

§

F22

The F22 key.

§

F23

The F23 key.

§

F24

The F24 key.

§

Final

The Final key.

§

Find

The Find key.

§

FullWidth

The FullWidth key.

§

Greater

The Greater (>) key.

§

HalfWidth

The HalfWidth key.

§

Help

The Help key.

§

Hiragana

The Hiragana key.

§

Home

The Home key.

§

InputMethodOnOff

The InputMethodOnOff key.

§

Insert

The Insert key.

§

InvertedExclamationMark

The InvertedExclamationMark (¡) key.

§

JapaneseHiragana

The JapaneseHiragana key.

§

JapaneseKatakana

The JapaneseKatakana key.

§

JapaneseRoman

The JapaneseRoman key.

§

Kana

The Kana key.

§

KanaLock

The KanaLock key.

§

KpLeft

The KpLeft key.

§

KpDown

The KpDown key.

§

KpRight

The KpRight key.

§

KpUp

The KpUp key.

§

Left

The Left key.

§

ParenthesisLeft

The ParenthesisLeft (() key.

§

ParenthesisRight

The ParenthesisRight ()) key.

§

Less

The Less (<) key.

§

Meta

The Meta key.

§

Minus

The Minus (-) key.

§

ModeChange

The ModeChange key.

§

Multiply

The Multiply key.

§

DontConvert

The DontConvert key.

§

NumLock

The NumLock key.

§

NumberSign

The NumberSign (#) key.

§

NumpadZero

The NumpadZero (0) key.

§

NumpadOne

The NumpadOne (1) key.

§

NumpadTwo

The NumpadTwo (2) key.

§

NumpadThree

The NumpadThree (3) key.

§

NumpadFour

The NumpadFour (4) key.

§

NumpadFive

The NumpadFive (5) key.

§

NumpadSix

The NumpadSix (6) key.

§

NumpadSeven

The NumpadSeven (7) key.

§

NumpadEight

The NumpadEight (8) key.

§

NumpadNine

The NumpadNine (9) key.

§

PageDown

The PageDown key.

§

PageUp

The PageUp key.

§

Paste

The Paste key.

§

Pause

The Pause key.

§

Period

The Period (.) key.

§

Plus

The Plus (+) key.

§

PreviousCandidate

The PreviousCandidate key.

§

Props

The Props key.

§

Quote

The Quote (’) key.

§

DoubleQuote

The DoubleQuote (“) key.

§

Right

The Right key.

§

RomanCharacters

The RomanCharacters key.

§

ScrollLock

The ScrollLock key.

§

Separator

The Separator key.

§

LeftShift

The LeftShift key.

§

RightShift

The RightShift key.

§

ShiftLock

The ShiftLock key.

§

LeftMeta

The LeftMeta key.

§

RightMeta

The RightMeta key.

§

LeftAlt

The LeftAlt key.

§

RightAlt

The RightAlt key.

§

LeftSuper

The LeftSuper key.

§

RightSuper

The RightSuper key.

§

LeftHyper

The LeftHyper key.

§

RightHyper

The RightHyper key.

§

Slash

The Slash (/) key.

§

Space

The Space ( ) key.

§

Stop

The Stop key.

§

Subtract

The Subtract key.

§

Tab

The Tab key.

§

Underscore

The Underscore (_) key.

§

Undo

The Undo key.

§

Up

The Up key.

§

Windows

The Windows key.

§

Percent

The Percent (%) key.

§

Question

The Question (?) key.

§

At

The At (@) key.

§

Tilde

The Tilde (~) key.

§

Semicolon

The Semicolon (;) key.

§

Backquote

The Backquote (`) key.

§

Bar

The Bar (|) key.

§

Backspace

The Backspace key.

Implementations§

Source§

impl Key

Source

pub fn as_char(self) -> Option<char>

Trait Implementations§

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

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

impl Default for Key

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Hash for Key

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for Key

Source§

fn cmp(&self, other: &Key) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for Key

Source§

fn eq(&self, other: &Key) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for Key

Source§

fn partial_cmp(&self, other: &Key) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Copy for Key

Source§

impl Eq for Key

Source§

impl StructuralPartialEq 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 T)

🔬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, 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.