Struct rustop::Parser

source ·
pub struct Parser<'a> { /* private fields */ }
Expand description

The command line parser.

Implementations

Return a new parser.

Add and return an option.

  • var is the associated variable

Add and return a parameter.

  • var is the associated variable

Set whether short options should be generated automatically.

Specify an additional stop string.

Set the command name.

Set the usage string.

Set the synopsis string.

Set the version string.

Add help option.

Parse vector of command line arguments.

Returns a vector of remaining (unparsed) arguments.

Write the usage string to some output stream.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.