#[non_exhaustive]pub enum Modifier {
ControlOrMeta,
Control,
Alt,
Shift,
Meta,
}Expand description
One modifier.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ControlOrMeta
Control on Linux and Windows, Command on macOS. Stays symbolic until a chord is turned into iced events, so a chord prints the same on every platform.
Control
Control.
Alt
Alt, or Option on macOS.
Shift
Shift.
Meta
The logo key: Super, Windows or Command.
Implementations§
Trait Implementations§
Source§impl BitOr<Modifier> for ModifierSet
impl BitOr<Modifier> for ModifierSet
impl Copy for Modifier
impl Eq for Modifier
Source§impl From<Modifier> for ModifierSet
impl From<Modifier> for ModifierSet
Source§impl FromIterator<Modifier> for ModifierSet
impl FromIterator<Modifier> for ModifierSet
Source§impl Ord for Modifier
impl Ord for Modifier
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Modifier
impl PartialOrd for Modifier
impl StructuralPartialEq for Modifier
Auto Trait Implementations§
impl Forget for Modifier
impl Freeze for Modifier
impl Move for Modifier
impl RefUnwindSafe for Modifier
impl Send for Modifier
impl Sync for Modifier
impl Unpin for Modifier
impl UnsafeUnpin for Modifier
impl UnwindSafe for Modifier
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