pub struct Modifiers(pub u32);Expand description
Modifier keys held during a key or pointer event.
Tuple Fields§
§0: u32Implementations§
Source§impl Modifiers
impl Modifiers
pub const NONE: Self
pub const SHIFT: Self
pub const CTRL: Self
pub const fn contains(self, other: Self) -> bool
pub const fn shift(self) -> bool
pub const fn ctrl(self) -> bool
pub const fn alt(self) -> bool
pub const fn super_key(self) -> bool
pub const fn is_empty(self) -> 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 UnsafeUnpin 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