pub struct KeybindingsFile {
pub path: PathBuf,
pub bindings: IndexMap<String, KeyBinding>,
pub migrated: bool,
pub diagnostics: Vec<ResourceDiagnostic>,
}Expand description
The loaded keybindings file.
Fields§
§path: PathBufFile path.
bindings: IndexMap<String, KeyBinding>Valid user bindings, migrated and ordered (known ids first, extras sorted).
migrated: boolWhether legacy names were migrated (the file is not rewritten).
diagnostics: Vec<ResourceDiagnostic>Unreadable file or dropped invalid entries (dropped silently).
Implementations§
Trait Implementations§
Source§impl Clone for KeybindingsFile
impl Clone for KeybindingsFile
Source§impl Debug for KeybindingsFile
impl Debug for KeybindingsFile
Source§impl Default for KeybindingsFile
impl Default for KeybindingsFile
impl Eq for KeybindingsFile
Source§impl PartialEq for KeybindingsFile
impl PartialEq for KeybindingsFile
impl StructuralPartialEq for KeybindingsFile
Auto Trait Implementations§
impl Freeze for KeybindingsFile
impl RefUnwindSafe for KeybindingsFile
impl Send for KeybindingsFile
impl Sync for KeybindingsFile
impl Unpin for KeybindingsFile
impl UnsafeUnpin for KeybindingsFile
impl UnwindSafe for KeybindingsFile
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.