pub enum HelpRow {
Title(String),
Subtitle(String),
Section(String),
Blank,
Entry {
keys: String,
label: String,
},
}Expand description
A single logical row of the help overlay (#187).
Decouples what the overlay documents from how it is painted.
help_rows produces this structured form so [draw_help] can
render coloured section headers and key badges (the same chip
style as the bottom statusline), while help_lines flattens it
back to the legacy {keys:<13} {label} strings the chord tests
in tests/tui_chord_tests.rs pin.
Variants§
Title(String)
Overlay title — always the first row.
Subtitle(String)
Context subtitle under the title (worktrees / status / switch),
issue #217. Reflects the focused pane / mode when ? was opened.
Section(String)
Section header (global, list view, issue / PR (#67), …).
Blank
Blank spacer row.
Entry
A documented binding: the resolved chord(s) and the human label.
keys is empty only for an unbound action; the flattening in
help_lines renders that as (unbound).
Trait Implementations§
impl Eq for HelpRow
impl StructuralPartialEq for HelpRow
Auto Trait Implementations§
impl Freeze for HelpRow
impl RefUnwindSafe for HelpRow
impl Send for HelpRow
impl Sync for HelpRow
impl Unpin for HelpRow
impl UnsafeUnpin for HelpRow
impl UnwindSafe for HelpRow
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more