logo
pub struct ModState {
Show 16 fields pub none: bool, pub lshift: bool, pub rshift: bool, pub lctrl: bool, pub rctrl: bool, pub lalt: bool, pub ralt: bool, pub lmeta: bool, pub rmeta: bool, pub num: bool, pub caps: bool, pub mode: bool, pub ctrl: bool, pub shift: bool, pub alt: bool, pub meta: bool,
}
Expand description

Input modifier state

Fields

none: bool

no modifiers are down

lshift: bool

left shift key is down

rshift: bool

right shift key is down

lctrl: bool

left ctrl key is down

rctrl: bool

right ctrl key is down

lalt: bool

left alt/option key is down

ralt: bool

right alt/option key is down

lmeta: bool

left windows/command key is down

rmeta: bool

right windows/command key is down

num: bool

numlock is enabled

caps: bool

capslock is enabled

mode: bool

mode key is down

ctrl: bool

left or right ctrl key is down

shift: bool

left or right shift key is down

alt: bool

left or right alt/option key is down

meta: bool

left or right windows/command key is down

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Typed getter

Inspect the context.

Inspect the context.

Inspect the context.

Calls U::from(self).

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

Convert into color

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Sets value as a parameter of self.

The resulting type after obtaining ownership.

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

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.