pub struct LocalKeyState { /* private fields */ }
Expand description
State of Key
’s specific to the hook.
Implementations
sourceimpl LocalKeyState
impl LocalKeyState
sourcepub fn is_pressed<K: Into<Key>>(&self, key: K) -> bool
pub fn is_pressed<K: Into<Key>>(&self, key: K) -> bool
Check if a key is pressed in the scope of this hook.
sourcepub fn is_involved<K: Into<Key>>(&self, key: K) -> bool
pub fn is_involved<K: Into<Key>>(&self, key: K) -> bool
Check if a key is involved in this hook.
This may be useful where multiple hooks call the same method.
Trait Implementations
sourceimpl Clone for LocalKeyState
impl Clone for LocalKeyState
sourcefn clone(&self) -> LocalKeyState
fn clone(&self) -> LocalKeyState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for LocalKeyState
impl Send for LocalKeyState
impl Sync for LocalKeyState
impl Unpin for LocalKeyState
impl UnwindSafe for LocalKeyState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more