pub struct Modifiers(/* private fields */);
Expand description
The set of modifier keys (e.g. Ctrl, Alt, and Shift) that were pressed at the time of an event. Represented as an opaque bitmap to allow for extension with other keys, such as a Meta or Command key.
Implementations§
Source§impl Modifiers
impl Modifiers
pub const NONE: Modifiers
pub const SHIFT: Modifiers
pub const ALT: Modifiers
pub const CTRL: Modifiers
pub const fn remove(self, other: Modifiers) -> Modifiers
pub const fn bitor(self, other: Modifiers) -> Modifiers
pub const fn bitand(self, other: Modifiers) -> Modifiers
pub const fn eq(&self, other: &Modifiers) -> bool
Trait Implementations§
impl Copy for Modifiers
impl Eq for Modifiers
impl StructuralPartialEq for Modifiers
Auto Trait Implementations§
impl Freeze for Modifiers
impl RefUnwindSafe for Modifiers
impl Send for Modifiers
impl Sync for Modifiers
impl Unpin for Modifiers
impl UnwindSafe for Modifiers
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