pub struct Binding {
pub keys: &'static str,
pub desc: &'static str,
pub sections: &'static [&'static str],
pub live: bool,
pub id: &'static str,
pub handler: Handler,
}Expand description
One binding as it appears in Space ? / which-key AND in dispatch
(0008 stage 2: one table). id is the stable command identity —
macros, dot-repeat, a future palette, and config rebinds ride it.
Fields§
§keys: &'static str§desc: &'static str§sections: &'static [&'static str]Sidebar sections a row lives in: normal · visual · insert · leader · git · ex+panes (multi-mode rows like gb list both).
live: boolfalse = planned slot: no dispatch yet, renders muted “(soon)”.
id: &'static strStable identity per row; per-sequence ids derive as {id}:{key}.
handler: HandlerAuto Trait Implementations§
impl Freeze for Binding
impl RefUnwindSafe for Binding
impl Send for Binding
impl Sync for Binding
impl Unpin for Binding
impl UnsafeUnpin for Binding
impl UnwindSafe for Binding
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