pub struct Modifiers(/* private fields */);Expand description
Keyboard modifier bitmask, HID standard order: left control, left shift, left alt, left GUI, then the right ones.
Implementations§
Source§impl Modifiers
impl Modifiers
Sourcepub const LEFT_CONTROL: Self
pub const LEFT_CONTROL: Self
Left control.
Sourcepub const LEFT_SHIFT: Self
pub const LEFT_SHIFT: Self
Left shift.
Sourcepub const RIGHT_CONTROL: Self
pub const RIGHT_CONTROL: Self
Right control.
Sourcepub const RIGHT_SHIFT: Self
pub const RIGHT_SHIFT: Self
Right shift.
Sourcepub const fn from_bits_retain(bits: u8) -> Self
pub const fn from_bits_retain(bits: u8) -> Self
Bitmask from raw bits; unknown bits are retained.
Sourcepub const fn intersects(self, other: Self) -> bool
pub const fn intersects(self, other: Self) -> bool
true when at least one bit is set in both.
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