pub struct Keymap { /* private fields */ }
Implementations
sourceimpl Keymap
impl Keymap
pub fn new() -> Self
pub fn name(&self, command_id: &CommandId) -> &str
pub fn is_empty(&self) -> bool
pub fn add(
&mut self,
name: impl Into<Cow<'static, str>>,
pattern: impl Into<KeyPattern>
) -> CommandId
pub fn add_command(
&mut self,
name: impl Into<Cow<'static, str>>
) -> (CommandId, bool)
pub fn bind_command(
&mut self,
command_id: CommandId,
pattern: impl Into<KeyPattern>
)
pub fn check_sequence(&self, keys: &[Key]) -> Option<&BindingQuery>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Keymap
impl Send for Keymap
impl Sync for Keymap
impl Unpin for Keymap
impl UnwindSafe for Keymap
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more