Struct ModifierKeyState
pub struct ModifierKeyState { /* private fields */ }Expand description
Implementations§
§impl ModifierKeyState
impl ModifierKeyState
pub fn new() -> ModifierKeyState
pub fn new() -> ModifierKeyState
Constructs a regular ModifierKeyState
pub fn sticky() -> ModifierKeyState
pub fn sticky() -> ModifierKeyState
Constructs a sticky ModifierKeyState
pub 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§
§impl Clone for ModifierKeyState
impl Clone for ModifierKeyState
§fn clone(&self) -> ModifierKeyState
fn clone(&self) -> ModifierKeyState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ModifierKeyState
§impl Debug for ModifierKeyState
impl Debug for ModifierKeyState
§impl Default for ModifierKeyState
impl Default for ModifierKeyState
§fn default() -> ModifierKeyState
fn default() -> ModifierKeyState
Returns the “default value” for a type. Read more
§impl PartialEq for ModifierKeyState
impl PartialEq for ModifierKeyState
§fn eq(&self, other: &ModifierKeyState) -> bool
fn eq(&self, other: &ModifierKeyState) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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