pub struct KeyLocks {
pub caps: bool,
pub num: bool,
}Expand description
What the lock keys hold at a press: Caps Lock and Num Lock on or off.
Not a modifier held — KeyMods is only what is down, which
accelerators and chords compare exactly — but state a press was made
under, which a terminal speaking kitty’s keyboard protocol reports
and a keypad reading needs (its 1 is an End with Num Lock off).
Fields§
§caps: bool§num: boolImplementations§
Trait Implementations§
impl Copy for KeyLocks
impl Eq for KeyLocks
impl StructuralPartialEq for KeyLocks
Auto Trait Implementations§
impl Freeze for KeyLocks
impl RefUnwindSafe for KeyLocks
impl Send for KeyLocks
impl Sync for KeyLocks
impl Unpin for KeyLocks
impl UnsafeUnpin for KeyLocks
impl UnwindSafe for KeyLocks
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.