pub struct Key {
pub keys: &'static str,
pub label: &'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.
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§
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