pub enum ModifierKey {
Ctrl,
Alt,
Shift,
Meta,
}
Expand description
Known modifier keys for bindings
Variants§
Trait Implementations§
Source§impl Clone for ModifierKey
impl Clone for ModifierKey
Source§fn clone(&self) -> ModifierKey
fn clone(&self) -> ModifierKey
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ModifierKey
impl Debug for ModifierKey
Source§impl From<ModifierKey> for u16
impl From<ModifierKey> for u16
Source§fn from(m: ModifierKey) -> u16
fn from(m: ModifierKey) -> u16
Converts to this type from the input type.
Source§impl Hash for ModifierKey
impl Hash for ModifierKey
Source§impl IntoEnumIterator for ModifierKey
impl IntoEnumIterator for ModifierKey
type Iterator = ModifierKeyIter
fn iter() -> ModifierKeyIter ⓘ
Source§impl Ord for ModifierKey
impl Ord for ModifierKey
Source§fn cmp(&self, other: &ModifierKey) -> Ordering
fn cmp(&self, other: &ModifierKey) -> Ordering
1.21.0 · 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
Source§impl PartialEq for ModifierKey
impl PartialEq for ModifierKey
Source§impl PartialOrd for ModifierKey
impl PartialOrd for ModifierKey
Source§impl TryFrom<&str> for ModifierKey
impl TryFrom<&str> for ModifierKey
impl Copy for ModifierKey
impl Eq for ModifierKey
impl StructuralPartialEq for ModifierKey
Auto Trait Implementations§
impl Freeze for ModifierKey
impl RefUnwindSafe for ModifierKey
impl Send for ModifierKey
impl Sync for ModifierKey
impl Unpin for ModifierKey
impl UnwindSafe for ModifierKey
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