pub struct Keymap { /* private fields */ }Implementations§
Source§impl Keymap
impl Keymap
pub fn new(leader: Chord) -> Self
pub fn bind( &mut self, mode: Mode, seq: &str, command: &'static str, ) -> Result<(), KeyParseError>
pub fn leader(&self) -> Chord
pub fn bindings(&self) -> &[Binding]
Sourcepub fn keys_for(&self, command: &str) -> Vec<&Binding>
pub fn keys_for(&self, command: &str) -> Vec<&Binding>
Every chord sequence bound to a command, for the help overlay.
pub fn resolve( &self, mode: Mode, pending: &mut Pending, chord: Chord, ) -> Resolution
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