pub struct Key {
pub keys: &'static str,
pub label: &'static str,
pub also: &'static [&'static str],
pub line: &'static str,
pub more: Option<&'static str>,
pub run: Run,
}Expand description
One key, or a few that do one thing in turn (n / N).
Fields§
§keys: &'static strWhat is typed, as the help writes it: ↑ / ↓ (j/k), Ctrl+O, (type).
label: &'static strA word or two for a hint beside the key: Filter, Next match.
also: &'static [&'static str]Other words a hint may give the key where what it does turns on the screen’s
state: Enter’s Show rows beside Read rows. A hint says one of these or
Key::label, never a word of its own.
line: &'static strOne line: the in-app help, and the man page and docs without Key::more.
more: Option<&'static str>The whole description, where it says more than the line: the manpage and the docs print it in place of the line.
run: RunImplementations§
Source§impl Key
impl Key
Sourcepub const fn more(self, more: &'static str) -> Self
pub const fn more(self, more: &'static str) -> Self
With the whole description for the manpage and the docs.
Sourcepub const fn also(self, also: &'static [&'static str]) -> Self
pub const fn also(self, also: &'static [&'static str]) -> Self
With other words a hint may say for it; see Key::also.
Trait Implementations§
impl Copy for Key
impl Eq for Key
impl StructuralPartialEq for Key
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnsafeUnpin for Key
impl UnwindSafe for Key
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