pub enum KeybindingSource {
AlwaysOn,
Mode(Arc<str>),
}Expand description
Structured provenance for a keybinding annotation: where the chord comes from. Used by both the filtering logic (show only if the source mode is active) and the display column (show the mode name alongside the chord).
Variants§
AlwaysOn
Always-on layer: Builtin, User, or Buffer. Always shows in the completion margin (no active-mode gate).
Mode(Arc<str>)
A minor/major mode binding. The string is the mode’s name
(e.g. "emacs-keys-mode"). Only shows when the mode is
active in the current buffer.
Trait Implementations§
Source§impl Clone for KeybindingSource
impl Clone for KeybindingSource
Source§fn clone(&self) -> KeybindingSource
fn clone(&self) -> KeybindingSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KeybindingSource
impl Debug for KeybindingSource
impl Eq for KeybindingSource
Source§impl PartialEq for KeybindingSource
impl PartialEq for KeybindingSource
impl StructuralPartialEq for KeybindingSource
Auto Trait Implementations§
impl Freeze for KeybindingSource
impl RefUnwindSafe for KeybindingSource
impl Send for KeybindingSource
impl Sync for KeybindingSource
impl Unpin for KeybindingSource
impl UnsafeUnpin for KeybindingSource
impl UnwindSafe for KeybindingSource
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.