Struct blarg_builder::SubCommand
source · pub struct SubCommand<'a> { /* private fields */ }Expand description
A sub-command line parser.
Used with SubCommandParser::command.
Implementations§
source§impl<'a> SubCommand<'a>
impl<'a> SubCommand<'a>
sourcepub fn add<T>(self, parameter: Parameter<'a, T>) -> Self
pub fn add<T>(self, parameter: Parameter<'a, T>) -> Self
Add an argument/option to the sub-command.
The order of argument parameters corresponds to their positional order during parsing. The order of option parameters does not affect the sub-command parser semantics.
See SubCommandParser::command for usage.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SubCommand<'a>
impl<'a> !Send for SubCommand<'a>
impl<'a> !Sync for SubCommand<'a>
impl<'a> Unpin for SubCommand<'a>
impl<'a> !UnwindSafe for SubCommand<'a>
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