Skip to main content

KeyboardKey

Trait KeyboardKey 

Source
pub trait KeyboardKey:
    Copy
    + Eq
    + Debug { }
Expand description

A base class for all keyboard key types.

See also:

  • PhysicalKeyboardKey, a type with constants that describe the keys that are returned from RawKeyEvent.physicalKey.
  • LogicalKeyboardKey, a type with constants that describe the keys that are returned from RawKeyEvent.logicalKey.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§