pub struct KeyMod(/* private fields */);Expand description
A bitmask of keyboard modifiers.
Implementations§
Source§impl KeyMod
§methods
impl KeyMod
§methods
Sourcepub fn has_capslock(&self) -> bool
pub fn has_capslock(&self) -> bool
Returns true if the CapsLock modifier is present.
Sourcepub fn has_numlock(&self) -> bool
pub fn has_numlock(&self) -> bool
Returns true if the NumLock modifier is present.
Trait Implementations§
Source§impl<'a, 'b> BitAndAssign<&'b KeyMod> for &'a mut KeyMod
impl<'a, 'b> BitAndAssign<&'b KeyMod> for &'a mut KeyMod
Source§fn bitand_assign(&mut self, rhs: &'b KeyMod)
fn bitand_assign(&mut self, rhs: &'b KeyMod)
Performs the
&= operation. Read moreSource§impl<'a, 'b> BitAndAssign<&'b KeyMod> for KeyMod
impl<'a, 'b> BitAndAssign<&'b KeyMod> for KeyMod
Source§fn bitand_assign(&mut self, rhs: &'b KeyMod)
fn bitand_assign(&mut self, rhs: &'b KeyMod)
Performs the
&= operation. Read moreSource§impl<'a, 'b> BitAndAssign<&'b KeyMod> for u32
impl<'a, 'b> BitAndAssign<&'b KeyMod> for u32
Source§fn bitand_assign(&mut self, rhs: &'b KeyMod)
fn bitand_assign(&mut self, rhs: &'b KeyMod)
Performs the
&= operation. Read moreSource§impl<'a, 'b> BitAndAssign<&'b mut KeyMod> for &'a mut KeyMod
impl<'a, 'b> BitAndAssign<&'b mut KeyMod> for &'a mut KeyMod
Source§fn bitand_assign(&mut self, rhs: &'b mut KeyMod)
fn bitand_assign(&mut self, rhs: &'b mut KeyMod)
Performs the
&= operation. Read moreSource§impl<'a, 'b> BitAndAssign<&'b mut KeyMod> for KeyMod
impl<'a, 'b> BitAndAssign<&'b mut KeyMod> for KeyMod
Source§fn bitand_assign(&mut self, rhs: &'b mut KeyMod)
fn bitand_assign(&mut self, rhs: &'b mut KeyMod)
Performs the
&= operation. Read moreSource§impl<'a, 'b> BitAndAssign<&'b mut KeyMod> for u32
impl<'a, 'b> BitAndAssign<&'b mut KeyMod> for u32
Source§fn bitand_assign(&mut self, rhs: &'b mut KeyMod)
fn bitand_assign(&mut self, rhs: &'b mut KeyMod)
Performs the
&= operation. Read moreSource§impl<'a, 'b> BitAndAssign<&'b u32> for &'a mut KeyMod
impl<'a, 'b> BitAndAssign<&'b u32> for &'a mut KeyMod
Source§fn bitand_assign(&mut self, rhs: &'b u32)
fn bitand_assign(&mut self, rhs: &'b u32)
Performs the
&= operation. Read moreSource§impl<'a, 'b> BitAndAssign<&'b u32> for KeyMod
impl<'a, 'b> BitAndAssign<&'b u32> for KeyMod
Source§fn bitand_assign(&mut self, rhs: &'b u32)
fn bitand_assign(&mut self, rhs: &'b u32)
Performs the
&= operation. Read moreSource§impl<'a, 'b> BitAndAssign<KeyMod> for &'a mut KeyMod
impl<'a, 'b> BitAndAssign<KeyMod> for &'a mut KeyMod
Source§fn bitand_assign(&mut self, rhs: KeyMod)
fn bitand_assign(&mut self, rhs: KeyMod)
Performs the
&= operation. Read moreSource§impl<'a, 'b> BitAndAssign<KeyMod> for u32
impl<'a, 'b> BitAndAssign<KeyMod> for u32
Source§fn bitand_assign(&mut self, rhs: KeyMod)
fn bitand_assign(&mut self, rhs: KeyMod)
Performs the
&= operation. Read moreSource§impl<'a, 'b> BitAndAssign<u32> for &'a mut KeyMod
impl<'a, 'b> BitAndAssign<u32> for &'a mut KeyMod
Source§fn bitand_assign(&mut self, rhs: u32)
fn bitand_assign(&mut self, rhs: u32)
Performs the
&= operation. Read moreSource§impl<'a, 'b> BitAndAssign<u32> for KeyMod
impl<'a, 'b> BitAndAssign<u32> for KeyMod
Source§fn bitand_assign(&mut self, rhs: u32)
fn bitand_assign(&mut self, rhs: u32)
Performs the
&= operation. Read moreSource§impl<'a, 'b> BitAndAssign for KeyMod
impl<'a, 'b> BitAndAssign for KeyMod
Source§fn bitand_assign(&mut self, rhs: KeyMod)
fn bitand_assign(&mut self, rhs: KeyMod)
Performs the
&= operation. Read moreSource§impl<'a, 'b> BitOrAssign<&'b KeyMod> for &'a mut KeyMod
impl<'a, 'b> BitOrAssign<&'b KeyMod> for &'a mut KeyMod
Source§fn bitor_assign(&mut self, rhs: &'b KeyMod)
fn bitor_assign(&mut self, rhs: &'b KeyMod)
Performs the
|= operation. Read moreSource§impl<'a, 'b> BitOrAssign<&'b KeyMod> for KeyMod
impl<'a, 'b> BitOrAssign<&'b KeyMod> for KeyMod
Source§fn bitor_assign(&mut self, rhs: &'b KeyMod)
fn bitor_assign(&mut self, rhs: &'b KeyMod)
Performs the
|= operation. Read moreSource§impl<'a, 'b> BitOrAssign<&'b KeyMod> for u32
impl<'a, 'b> BitOrAssign<&'b KeyMod> for u32
Source§fn bitor_assign(&mut self, rhs: &'b KeyMod)
fn bitor_assign(&mut self, rhs: &'b KeyMod)
Performs the
|= operation. Read moreSource§impl<'a, 'b> BitOrAssign<&'b mut KeyMod> for &'a mut KeyMod
impl<'a, 'b> BitOrAssign<&'b mut KeyMod> for &'a mut KeyMod
Source§fn bitor_assign(&mut self, rhs: &'b mut KeyMod)
fn bitor_assign(&mut self, rhs: &'b mut KeyMod)
Performs the
|= operation. Read moreSource§impl<'a, 'b> BitOrAssign<&'b mut KeyMod> for KeyMod
impl<'a, 'b> BitOrAssign<&'b mut KeyMod> for KeyMod
Source§fn bitor_assign(&mut self, rhs: &'b mut KeyMod)
fn bitor_assign(&mut self, rhs: &'b mut KeyMod)
Performs the
|= operation. Read moreSource§impl<'a, 'b> BitOrAssign<&'b mut KeyMod> for u32
impl<'a, 'b> BitOrAssign<&'b mut KeyMod> for u32
Source§fn bitor_assign(&mut self, rhs: &'b mut KeyMod)
fn bitor_assign(&mut self, rhs: &'b mut KeyMod)
Performs the
|= operation. Read moreSource§impl<'a, 'b> BitOrAssign<&'b u32> for &'a mut KeyMod
impl<'a, 'b> BitOrAssign<&'b u32> for &'a mut KeyMod
Source§fn bitor_assign(&mut self, rhs: &'b u32)
fn bitor_assign(&mut self, rhs: &'b u32)
Performs the
|= operation. Read moreSource§impl<'a, 'b> BitOrAssign<&'b u32> for KeyMod
impl<'a, 'b> BitOrAssign<&'b u32> for KeyMod
Source§fn bitor_assign(&mut self, rhs: &'b u32)
fn bitor_assign(&mut self, rhs: &'b u32)
Performs the
|= operation. Read moreSource§impl<'a, 'b> BitOrAssign<KeyMod> for &'a mut KeyMod
impl<'a, 'b> BitOrAssign<KeyMod> for &'a mut KeyMod
Source§fn bitor_assign(&mut self, rhs: KeyMod)
fn bitor_assign(&mut self, rhs: KeyMod)
Performs the
|= operation. Read moreSource§impl<'a, 'b> BitOrAssign<KeyMod> for u32
impl<'a, 'b> BitOrAssign<KeyMod> for u32
Source§fn bitor_assign(&mut self, rhs: KeyMod)
fn bitor_assign(&mut self, rhs: KeyMod)
Performs the
|= operation. Read moreSource§impl<'a, 'b> BitOrAssign<u32> for &'a mut KeyMod
impl<'a, 'b> BitOrAssign<u32> for &'a mut KeyMod
Source§fn bitor_assign(&mut self, rhs: u32)
fn bitor_assign(&mut self, rhs: u32)
Performs the
|= operation. Read moreSource§impl<'a, 'b> BitOrAssign<u32> for KeyMod
impl<'a, 'b> BitOrAssign<u32> for KeyMod
Source§fn bitor_assign(&mut self, rhs: u32)
fn bitor_assign(&mut self, rhs: u32)
Performs the
|= operation. Read moreSource§impl<'a, 'b> BitOrAssign for KeyMod
impl<'a, 'b> BitOrAssign for KeyMod
Source§fn bitor_assign(&mut self, rhs: KeyMod)
fn bitor_assign(&mut self, rhs: KeyMod)
Performs the
|= operation. Read moreSource§impl<'a, 'b> BitXorAssign<&'b KeyMod> for &'a mut KeyMod
impl<'a, 'b> BitXorAssign<&'b KeyMod> for &'a mut KeyMod
Source§fn bitxor_assign(&mut self, rhs: &'b KeyMod)
fn bitxor_assign(&mut self, rhs: &'b KeyMod)
Performs the
^= operation. Read moreSource§impl<'a, 'b> BitXorAssign<&'b KeyMod> for KeyMod
impl<'a, 'b> BitXorAssign<&'b KeyMod> for KeyMod
Source§fn bitxor_assign(&mut self, rhs: &'b KeyMod)
fn bitxor_assign(&mut self, rhs: &'b KeyMod)
Performs the
^= operation. Read moreSource§impl<'a, 'b> BitXorAssign<&'b KeyMod> for u32
impl<'a, 'b> BitXorAssign<&'b KeyMod> for u32
Source§fn bitxor_assign(&mut self, rhs: &'b KeyMod)
fn bitxor_assign(&mut self, rhs: &'b KeyMod)
Performs the
^= operation. Read moreSource§impl<'a, 'b> BitXorAssign<&'b mut KeyMod> for &'a mut KeyMod
impl<'a, 'b> BitXorAssign<&'b mut KeyMod> for &'a mut KeyMod
Source§fn bitxor_assign(&mut self, rhs: &'b mut KeyMod)
fn bitxor_assign(&mut self, rhs: &'b mut KeyMod)
Performs the
^= operation. Read moreSource§impl<'a, 'b> BitXorAssign<&'b mut KeyMod> for KeyMod
impl<'a, 'b> BitXorAssign<&'b mut KeyMod> for KeyMod
Source§fn bitxor_assign(&mut self, rhs: &'b mut KeyMod)
fn bitxor_assign(&mut self, rhs: &'b mut KeyMod)
Performs the
^= operation. Read moreSource§impl<'a, 'b> BitXorAssign<&'b mut KeyMod> for u32
impl<'a, 'b> BitXorAssign<&'b mut KeyMod> for u32
Source§fn bitxor_assign(&mut self, rhs: &'b mut KeyMod)
fn bitxor_assign(&mut self, rhs: &'b mut KeyMod)
Performs the
^= operation. Read moreSource§impl<'a, 'b> BitXorAssign<&'b u32> for &'a mut KeyMod
impl<'a, 'b> BitXorAssign<&'b u32> for &'a mut KeyMod
Source§fn bitxor_assign(&mut self, rhs: &'b u32)
fn bitxor_assign(&mut self, rhs: &'b u32)
Performs the
^= operation. Read moreSource§impl<'a, 'b> BitXorAssign<&'b u32> for KeyMod
impl<'a, 'b> BitXorAssign<&'b u32> for KeyMod
Source§fn bitxor_assign(&mut self, rhs: &'b u32)
fn bitxor_assign(&mut self, rhs: &'b u32)
Performs the
^= operation. Read moreSource§impl<'a, 'b> BitXorAssign<KeyMod> for &'a mut KeyMod
impl<'a, 'b> BitXorAssign<KeyMod> for &'a mut KeyMod
Source§fn bitxor_assign(&mut self, rhs: KeyMod)
fn bitxor_assign(&mut self, rhs: KeyMod)
Performs the
^= operation. Read moreSource§impl<'a, 'b> BitXorAssign<KeyMod> for u32
impl<'a, 'b> BitXorAssign<KeyMod> for u32
Source§fn bitxor_assign(&mut self, rhs: KeyMod)
fn bitxor_assign(&mut self, rhs: KeyMod)
Performs the
^= operation. Read moreSource§impl<'a, 'b> BitXorAssign<u32> for &'a mut KeyMod
impl<'a, 'b> BitXorAssign<u32> for &'a mut KeyMod
Source§fn bitxor_assign(&mut self, rhs: u32)
fn bitxor_assign(&mut self, rhs: u32)
Performs the
^= operation. Read moreSource§impl<'a, 'b> BitXorAssign<u32> for KeyMod
impl<'a, 'b> BitXorAssign<u32> for KeyMod
Source§fn bitxor_assign(&mut self, rhs: u32)
fn bitxor_assign(&mut self, rhs: u32)
Performs the
^= operation. Read moreSource§impl<'a, 'b> BitXorAssign for KeyMod
impl<'a, 'b> BitXorAssign for KeyMod
Source§fn bitxor_assign(&mut self, rhs: KeyMod)
fn bitxor_assign(&mut self, rhs: KeyMod)
Performs the
^= operation. Read moreSource§impl<'a, 'b> ShlAssign<&'b KeyMod> for &'a mut KeyMod
impl<'a, 'b> ShlAssign<&'b KeyMod> for &'a mut KeyMod
Source§fn shl_assign(&mut self, rhs: &'b KeyMod)
fn shl_assign(&mut self, rhs: &'b KeyMod)
Performs the
<<= operation. Read moreSource§impl<'a, 'b> ShlAssign<&'b KeyMod> for KeyMod
impl<'a, 'b> ShlAssign<&'b KeyMod> for KeyMod
Source§fn shl_assign(&mut self, rhs: &'b KeyMod)
fn shl_assign(&mut self, rhs: &'b KeyMod)
Performs the
<<= operation. Read moreSource§impl<'a, 'b> ShlAssign<&'b KeyMod> for u32
impl<'a, 'b> ShlAssign<&'b KeyMod> for u32
Source§fn shl_assign(&mut self, rhs: &'b KeyMod)
fn shl_assign(&mut self, rhs: &'b KeyMod)
Performs the
<<= operation. Read moreSource§impl<'a, 'b> ShlAssign<&'b mut KeyMod> for &'a mut KeyMod
impl<'a, 'b> ShlAssign<&'b mut KeyMod> for &'a mut KeyMod
Source§fn shl_assign(&mut self, rhs: &'b mut KeyMod)
fn shl_assign(&mut self, rhs: &'b mut KeyMod)
Performs the
<<= operation. Read moreSource§impl<'a, 'b> ShlAssign<&'b mut KeyMod> for KeyMod
impl<'a, 'b> ShlAssign<&'b mut KeyMod> for KeyMod
Source§fn shl_assign(&mut self, rhs: &'b mut KeyMod)
fn shl_assign(&mut self, rhs: &'b mut KeyMod)
Performs the
<<= operation. Read moreSource§impl<'a, 'b> ShlAssign<&'b mut KeyMod> for u32
impl<'a, 'b> ShlAssign<&'b mut KeyMod> for u32
Source§fn shl_assign(&mut self, rhs: &'b mut KeyMod)
fn shl_assign(&mut self, rhs: &'b mut KeyMod)
Performs the
<<= operation. Read moreSource§impl<'a, 'b> ShlAssign<&'b u32> for &'a mut KeyMod
impl<'a, 'b> ShlAssign<&'b u32> for &'a mut KeyMod
Source§fn shl_assign(&mut self, rhs: &'b u32)
fn shl_assign(&mut self, rhs: &'b u32)
Performs the
<<= operation. Read moreSource§impl<'a, 'b> ShlAssign<&'b u32> for KeyMod
impl<'a, 'b> ShlAssign<&'b u32> for KeyMod
Source§fn shl_assign(&mut self, rhs: &'b u32)
fn shl_assign(&mut self, rhs: &'b u32)
Performs the
<<= operation. Read moreSource§impl<'a, 'b> ShlAssign<KeyMod> for &'a mut KeyMod
impl<'a, 'b> ShlAssign<KeyMod> for &'a mut KeyMod
Source§fn shl_assign(&mut self, rhs: KeyMod)
fn shl_assign(&mut self, rhs: KeyMod)
Performs the
<<= operation. Read moreSource§impl<'a, 'b> ShlAssign<KeyMod> for u32
impl<'a, 'b> ShlAssign<KeyMod> for u32
Source§fn shl_assign(&mut self, rhs: KeyMod)
fn shl_assign(&mut self, rhs: KeyMod)
Performs the
<<= operation. Read moreSource§impl<'a, 'b> ShlAssign<u32> for &'a mut KeyMod
impl<'a, 'b> ShlAssign<u32> for &'a mut KeyMod
Source§fn shl_assign(&mut self, rhs: u32)
fn shl_assign(&mut self, rhs: u32)
Performs the
<<= operation. Read moreSource§impl<'a, 'b> ShlAssign<u32> for KeyMod
impl<'a, 'b> ShlAssign<u32> for KeyMod
Source§fn shl_assign(&mut self, rhs: u32)
fn shl_assign(&mut self, rhs: u32)
Performs the
<<= operation. Read moreSource§impl<'a, 'b> ShlAssign for KeyMod
impl<'a, 'b> ShlAssign for KeyMod
Source§fn shl_assign(&mut self, rhs: KeyMod)
fn shl_assign(&mut self, rhs: KeyMod)
Performs the
<<= operation. Read moreSource§impl<'a, 'b> ShrAssign<&'b KeyMod> for &'a mut KeyMod
impl<'a, 'b> ShrAssign<&'b KeyMod> for &'a mut KeyMod
Source§fn shr_assign(&mut self, rhs: &'b KeyMod)
fn shr_assign(&mut self, rhs: &'b KeyMod)
Performs the
>>= operation. Read moreSource§impl<'a, 'b> ShrAssign<&'b KeyMod> for KeyMod
impl<'a, 'b> ShrAssign<&'b KeyMod> for KeyMod
Source§fn shr_assign(&mut self, rhs: &'b KeyMod)
fn shr_assign(&mut self, rhs: &'b KeyMod)
Performs the
>>= operation. Read moreSource§impl<'a, 'b> ShrAssign<&'b KeyMod> for u32
impl<'a, 'b> ShrAssign<&'b KeyMod> for u32
Source§fn shr_assign(&mut self, rhs: &'b KeyMod)
fn shr_assign(&mut self, rhs: &'b KeyMod)
Performs the
>>= operation. Read moreSource§impl<'a, 'b> ShrAssign<&'b mut KeyMod> for &'a mut KeyMod
impl<'a, 'b> ShrAssign<&'b mut KeyMod> for &'a mut KeyMod
Source§fn shr_assign(&mut self, rhs: &'b mut KeyMod)
fn shr_assign(&mut self, rhs: &'b mut KeyMod)
Performs the
>>= operation. Read moreSource§impl<'a, 'b> ShrAssign<&'b mut KeyMod> for KeyMod
impl<'a, 'b> ShrAssign<&'b mut KeyMod> for KeyMod
Source§fn shr_assign(&mut self, rhs: &'b mut KeyMod)
fn shr_assign(&mut self, rhs: &'b mut KeyMod)
Performs the
>>= operation. Read moreSource§impl<'a, 'b> ShrAssign<&'b mut KeyMod> for u32
impl<'a, 'b> ShrAssign<&'b mut KeyMod> for u32
Source§fn shr_assign(&mut self, rhs: &'b mut KeyMod)
fn shr_assign(&mut self, rhs: &'b mut KeyMod)
Performs the
>>= operation. Read moreSource§impl<'a, 'b> ShrAssign<&'b u32> for &'a mut KeyMod
impl<'a, 'b> ShrAssign<&'b u32> for &'a mut KeyMod
Source§fn shr_assign(&mut self, rhs: &'b u32)
fn shr_assign(&mut self, rhs: &'b u32)
Performs the
>>= operation. Read moreSource§impl<'a, 'b> ShrAssign<&'b u32> for KeyMod
impl<'a, 'b> ShrAssign<&'b u32> for KeyMod
Source§fn shr_assign(&mut self, rhs: &'b u32)
fn shr_assign(&mut self, rhs: &'b u32)
Performs the
>>= operation. Read moreSource§impl<'a, 'b> ShrAssign<KeyMod> for &'a mut KeyMod
impl<'a, 'b> ShrAssign<KeyMod> for &'a mut KeyMod
Source§fn shr_assign(&mut self, rhs: KeyMod)
fn shr_assign(&mut self, rhs: KeyMod)
Performs the
>>= operation. Read moreSource§impl<'a, 'b> ShrAssign<KeyMod> for u32
impl<'a, 'b> ShrAssign<KeyMod> for u32
Source§fn shr_assign(&mut self, rhs: KeyMod)
fn shr_assign(&mut self, rhs: KeyMod)
Performs the
>>= operation. Read moreSource§impl<'a, 'b> ShrAssign<u32> for &'a mut KeyMod
impl<'a, 'b> ShrAssign<u32> for &'a mut KeyMod
Source§fn shr_assign(&mut self, rhs: u32)
fn shr_assign(&mut self, rhs: u32)
Performs the
>>= operation. Read moreSource§impl<'a, 'b> ShrAssign<u32> for KeyMod
impl<'a, 'b> ShrAssign<u32> for KeyMod
Source§fn shr_assign(&mut self, rhs: u32)
fn shr_assign(&mut self, rhs: u32)
Performs the
>>= operation. Read moreSource§impl<'a, 'b> ShrAssign for KeyMod
impl<'a, 'b> ShrAssign for KeyMod
Source§fn shr_assign(&mut self, rhs: KeyMod)
fn shr_assign(&mut self, rhs: KeyMod)
Performs the
>>= operation. Read moreimpl Copy for KeyMod
impl Eq for KeyMod
impl StructuralPartialEq for KeyMod
Auto Trait Implementations§
impl Freeze for KeyMod
impl RefUnwindSafe for KeyMod
impl Send for KeyMod
impl Sync for KeyMod
impl Unpin for KeyMod
impl UnwindSafe for KeyMod
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