pub struct ModifierKeyState { /* private fields */ }Expand description
Implementations§
Source§impl ModifierKeyState
 
impl ModifierKeyState
Sourcepub fn handle_event(
    &mut self,
    keymap_index: u16,
    event: Event<LayerEvent>,
    key: &ModifierKey,
) -> Option<LayerEvent>
 
pub fn handle_event( &mut self, keymap_index: u16, event: Event<LayerEvent>, key: &ModifierKey, ) -> Option<LayerEvent>
Handle the given event for the given key.
Trait Implementations§
Source§impl Clone for ModifierKeyState
 
impl Clone for ModifierKeyState
Source§fn clone(&self) -> ModifierKeyState
 
fn clone(&self) -> ModifierKeyState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for ModifierKeyState
 
impl Debug for ModifierKeyState
Source§impl From<ModifierKeyState> for KeyState
 
impl From<ModifierKeyState> for KeyState
Source§fn from(ks: LayeredKeyState) -> Self
 
fn from(ks: LayeredKeyState) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ModifierKeyState
 
impl PartialEq for ModifierKeyState
impl Copy for ModifierKeyState
impl StructuralPartialEq for ModifierKeyState
Auto Trait Implementations§
impl Freeze for ModifierKeyState
impl RefUnwindSafe for ModifierKeyState
impl Send for ModifierKeyState
impl Sync for ModifierKeyState
impl Unpin for ModifierKeyState
impl UnwindSafe for ModifierKeyState
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