pub struct DefaultParser { /* private fields */ }Expand description
The default implementation of Parser trait.
Implementations§
Source§impl DefaultParser
impl DefaultParser
Sourcepub fn builder() -> ParserBuilder
pub fn builder() -> ParserBuilder
Get the builder to config parser.
Trait Implementations§
Source§impl Parser for DefaultParser
impl Parser for DefaultParser
Source§fn parse_or_exit(
&mut self,
options: &Options,
formatter: &HelpFormatter,
) -> CommandLine
fn parse_or_exit( &mut self, options: &Options, formatter: &HelpFormatter, ) -> CommandLine
Source§fn parse_args<T>(
&mut self,
options: &Options,
arguments: &[T],
) -> Result<CommandLine, ParseErr>where
T: ToString,
fn parse_args<T>(
&mut self,
options: &Options,
arguments: &[T],
) -> Result<CommandLine, ParseErr>where
T: ToString,
Auto Trait Implementations§
impl Freeze for DefaultParser
impl !RefUnwindSafe for DefaultParser
impl !Send for DefaultParser
impl !Sync for DefaultParser
impl Unpin for DefaultParser
impl !UnwindSafe for DefaultParser
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