pub struct KeybindingDefinition {
pub key: String,
pub description: String,
pub handler: KeybindingHandler,
}Expand description
Keybinding definition registered by an extension.
Fields§
§key: StringKey combination (e.g., “ctrl+k”, “alt+shift+p”).
description: StringHuman-readable description.
handler: KeybindingHandlerKeybinding handler function.
Implementations§
Source§impl KeybindingDefinition
impl KeybindingDefinition
Sourcepub fn new(key: String, description: String, handler: KeybindingHandler) -> Self
pub fn new(key: String, description: String, handler: KeybindingHandler) -> Self
Creates a new keybinding definition.
Auto Trait Implementations§
impl Freeze for KeybindingDefinition
impl !RefUnwindSafe for KeybindingDefinition
impl Send for KeybindingDefinition
impl Sync for KeybindingDefinition
impl Unpin for KeybindingDefinition
impl !UnwindSafe for KeybindingDefinition
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