pub enum Modifier {
None = 0,
Alt = 1,
Cmd = 2,
Ctrl = 4,
Shift = 8,
}
Expand description
Modifier keys that can be combined with other keys.
Each variant is represented as a bitflag.
Variants§
None = 0
No modifier.
Alt = 1
Alt key.
Cmd = 2
Command (Meta/Windows) key.
Ctrl = 4
Control key.
Shift = 8
Shift key.
Trait Implementations§
impl Copy for Modifier
impl StructuralPartialEq for Modifier
Auto Trait Implementations§
impl Freeze for Modifier
impl RefUnwindSafe for Modifier
impl Send for Modifier
impl Sync for Modifier
impl Unpin 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