#[repr(C)]pub struct KeyLocks {
pub caps_lock: bool,
pub num_lock: bool,
pub scroll_lock: bool,
}Expand description
Which lock keys are currently engaged.
Not modifiers: a modifier is held, a lock is toggled, and an app that wants to warn “Caps Lock is on” in a password field needs the toggle state, which no key event carries.
Fields§
§caps_lock: bool§num_lock: bool§scroll_lock: boolTrait Implementations§
impl Copy for KeyLocks
impl Eq for KeyLocks
Source§impl Ord for KeyLocks
impl Ord for KeyLocks
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for KeyLocks
impl PartialOrd 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