pub struct Keymap { /* private fields */ }Expand description
Configurable keymap that resolves key events to semantic actions.
Implementations§
Source§impl Keymap
impl Keymap
Sourcepub fn default_bindings() -> Self
pub fn default_bindings() -> Self
Create a keymap with the default bindings.
Sourcepub fn resolve(&self, key: KeyCode, modifiers: Modifiers) -> Option<&KeyAction>
pub fn resolve(&self, key: KeyCode, modifiers: Modifiers) -> Option<&KeyAction>
Resolve a key event to a semantic action.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Keymap
impl RefUnwindSafe for Keymap
impl Send for Keymap
impl Sync for Keymap
impl Unpin for Keymap
impl UnsafeUnpin for Keymap
impl UnwindSafe for Keymap
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