Enum wca::HelpVariants
source · pub enum HelpVariants {
All,
General,
SubjectCommand,
DotCommand,
}Expand description
Available help commands variants
Variants§
All
Make all available variants
General
Help for whole program. E.g. .help
SubjectCommand
Detailed help for one command as subject in help command. E.g. .help command_name
DotCommand
Detailed help for one command as separate help command. E.g. .help.command_name
Implementations§
source§impl HelpVariants
impl HelpVariants
sourcepub fn generate(
&self,
helper: &HelpGeneratorFn,
grammar: &mut GrammarConverter,
executor: &mut ExecutorConverter
)
pub fn generate( &self, helper: &HelpGeneratorFn, grammar: &mut GrammarConverter, executor: &mut ExecutorConverter )
Generates help commands
Trait Implementations§
source§impl Debug for HelpVariants
impl Debug for HelpVariants
source§impl Hash for HelpVariants
impl Hash for HelpVariants
source§impl PartialEq for HelpVariants
impl PartialEq for HelpVariants
source§fn eq(&self, other: &HelpVariants) -> bool
fn eq(&self, other: &HelpVariants) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for HelpVariants
impl StructuralEq for HelpVariants
impl StructuralPartialEq for HelpVariants
Auto Trait Implementations§
impl RefUnwindSafe for HelpVariants
impl Send for HelpVariants
impl Sync for HelpVariants
impl Unpin for HelpVariants
impl UnwindSafe for HelpVariants
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