pub struct KeyMap { /* private fields */ }Implementations§
Source§impl KeyMap
impl KeyMap
pub fn empty() -> Self
Sourcepub fn load_from_default_path() -> Result<Self, String>
pub fn load_from_default_path() -> Result<Self, String>
Load from the default path ~/.config/tess/keys.toml. Missing file
is OK and returns an empty map. Returns an error if the file exists
but can’t be parsed.
pub fn load_from_str(toml_text: &str) -> Result<Self, String>
pub fn lookup(&self, key: &KeyEvent) -> Option<&BindingTarget>
pub fn is_empty(&self) -> bool
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