Enum druid_shell::KeyState [−]
pub enum KeyState {
Down,
Up,
}
Expand description
Describes the state the key is in.
Variants
Key is pressed.
In JS: “keydown” event firing.
Key is released.
In JS: “keyup event”.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for KeyState
impl UnwindSafe for KeyState
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn round_from(x: T) -> T
pub fn round_from(x: T) -> T
Performs the conversion.
pub fn round_into(self) -> U
pub fn round_into(self) -> U
Performs the conversion.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more