#[non_exhaustive]pub enum Help {
List {
title: Option<String>,
items: Vec<(String, String)>,
cr: bool,
},
Words(Vec<String>),
Unrecognized,
Error(Error),
}Expand description
the answer to “?”
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
List
what may follow: (label, description) in display order; cr when the command may end
here; the mode’s title for an empty line
Words(Vec<String>)
the keywords a partly typed word may become
Unrecognized
nothing starts like the partly typed word
Error(Error)
Implementations§
Trait Implementations§
impl Eq for Help
impl StructuralPartialEq for Help
Auto Trait Implementations§
impl Forget for Help
impl Freeze for Help
impl RefUnwindSafe for Help
impl Send for Help
impl Sync for Help
impl Unpin for Help
impl UnsafeUnpin for Help
impl UnwindSafe for Help
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