pub struct KeyMap { /* private fields */ }Implementations§
Source§impl KeyMap
impl KeyMap
pub fn empty() -> Self
Sourcepub fn load_layered() -> Result<Self, String>
pub fn load_layered() -> Result<Self, String>
Load keys from the global config dir (/etc/tess/ or
$TESS_GLOBAL_CONFIG_DIR) and from ~/.config/tess/keys.toml,
merging per individual binding key with local winning.
Global parse errors warn on stderr and the global layer is treated as empty; local parse errors fail startup.
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