Enum KeyState
#[repr(i32)]pub enum KeyState {
Pressed = 0,
Released = 1,
}Expand description
Indicates the states of a hardware key.
Variants§
Implementations§
Trait Implementations§
§impl VariantConstraint for KeyState
impl VariantConstraint for KeyState
impl Copy for KeyState
impl Eq for KeyState
impl PropertyTypeConstraint for KeyState
impl StructuralPartialEq for KeyState
Auto Trait Implementations§
impl Freeze for KeyState
impl RefUnwindSafe for KeyState
impl Send for KeyState
impl Sync for KeyState
impl Unpin for KeyState
impl UnwindSafe for KeyState
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