pub trait AsKeystroke {
// Required method
fn as_keystroke(&self) -> &Keystroke;
}Expand description
A type that can be viewed as a Keystroke.
Matching code uses this so that it accepts both a Keystroke that was typed and a
KeybindingKeystroke from a keymap.
Required Methods§
Sourcefn as_keystroke(&self) -> &Keystroke
fn as_keystroke(&self) -> &Keystroke
Returns the Keystroke this value represents.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".