pub struct KeyBindings { /* private fields */ }Expand description
Manages a list of key bindings.
Implementations§
Source§impl KeyBindings
impl KeyBindings
Sourcepub fn add(&mut self, binding: KeyBinding)
pub fn add(&mut self, binding: KeyBinding)
Add a key binding.
Sourcepub fn find(
&self,
key: Key,
modifiers: ModifiersState,
state: InputState,
mode: Mode,
) -> Option<KeyBinding>
pub fn find( &self, key: Key, modifiers: ModifiersState, state: InputState, mode: Mode, ) -> Option<KeyBinding>
Find a key binding based on some input state.
Sourcepub fn iter(&self) -> Iter<'_, KeyBinding>
pub fn iter(&self) -> Iter<'_, KeyBinding>
Iterate over all key bindings.
Trait Implementations§
Source§impl Debug for KeyBindings
impl Debug for KeyBindings
Auto Trait Implementations§
impl Freeze for KeyBindings
impl RefUnwindSafe for KeyBindings
impl Send for KeyBindings
impl Sync for KeyBindings
impl Unpin for KeyBindings
impl UnwindSafe for KeyBindings
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