pub struct PressedKey<R, S> {
pub keymap_index: u16,
pub key_ref: R,
pub key_state: S,
}
Expand description
A struct for associating a key ref with a crate::key::KeyState.
Fields§
§keymap_index: u16
The index of the pressed key in some keymap.
key_ref: R
The Ref to the key data of the key state.
key_state: S
The pressed key state.
Trait Implementations§
Source§impl<R: Clone, S: Clone> Clone for PressedKey<R, S>
impl<R: Clone, S: Clone> Clone for PressedKey<R, S>
Source§fn clone(&self) -> PressedKey<R, S>
fn clone(&self) -> PressedKey<R, S>
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 moreimpl<R: Copy, S: Copy> Copy for PressedKey<R, S>
impl<R, S> StructuralPartialEq for PressedKey<R, S>
Auto Trait Implementations§
impl<R, S> Freeze for PressedKey<R, S>
impl<R, S> RefUnwindSafe for PressedKey<R, S>where
R: RefUnwindSafe,
S: RefUnwindSafe,
impl<R, S> Send for PressedKey<R, S>
impl<R, S> Sync for PressedKey<R, S>
impl<R, S> Unpin for PressedKey<R, S>
impl<R, S> UnwindSafe for PressedKey<R, S>where
R: UnwindSafe,
S: UnwindSafe,
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