Expand description
Represents the state of modifier keys.
Fields
cmd: bool
True if the cmd key is pressed.
Command key on Mac, ctrl on Windows/Linux.
Use this for e.g. cmd+A
(select all).
shift: bool
True if any shift key is pressed.
ctrl: bool
True if any ctrl key is pressed.
alt: bool
True if any alt key is pressed.
Implementations
Trait Implementations
sourceimpl PartialEq<Modifiers> for Modifiers
impl PartialEq<Modifiers> for Modifiers
impl Copy for Modifiers
impl Eq for Modifiers
impl StructuralEq for Modifiers
impl StructuralPartialEq for Modifiers
Auto Trait Implementations
impl RefUnwindSafe for Modifiers
impl Send for Modifiers
impl Sync for Modifiers
impl Unpin for Modifiers
impl UnwindSafe for Modifiers
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more