pub struct ModifierKeys {
pub shift: bool,
pub ctrl: bool,
pub alt: bool,
pub meta: bool,
}Expand description
Keyboard modifier keys state
Fields§
§shift: boolShift key is held
ctrl: boolCtrl key (or Cmd on Mac) is held
alt: boolAlt key (or Option on Mac) is held
meta: boolMeta key (Cmd on Mac, Win on Windows) is held
Implementations§
Trait Implementations§
Source§impl Clone for ModifierKeys
impl Clone for ModifierKeys
Source§fn clone(&self) -> ModifierKeys
fn clone(&self) -> ModifierKeys
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 ModifierKeys
impl Debug for ModifierKeys
Source§impl Default for ModifierKeys
impl Default for ModifierKeys
Source§fn default() -> ModifierKeys
fn default() -> ModifierKeys
Returns the “default value” for a type. Read more
Source§impl Hash for ModifierKeys
impl Hash for ModifierKeys
Source§impl PartialEq for ModifierKeys
impl PartialEq for ModifierKeys
impl Copy for ModifierKeys
impl Eq for ModifierKeys
impl StructuralPartialEq for ModifierKeys
Auto Trait Implementations§
impl Freeze for ModifierKeys
impl RefUnwindSafe for ModifierKeys
impl Send for ModifierKeys
impl Sync for ModifierKeys
impl Unpin for ModifierKeys
impl UnsafeUnpin for ModifierKeys
impl UnwindSafe for ModifierKeys
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