Struct clargs::ParsingResults [] [src]

pub struct ParsingResults { /* fields omitted */ }

Returned after successfully parsing command-line arguments.

Contains all the parsed results of the arguments with methods to retrieve those results.

Methods

impl ParsingResults
[src]

[src]

Constructs and returns a new ParsingResults object.

[src]

Returns a reference to the stored path.

[src]

Returns a mutable reference to the stored path.

[src]

Returns a reference to the stored set of flags.

[src]

Returns a mutable reference to the stored set of flags.

[src]

Returns a reference to the stored map of named parameters to their respective values.

[src]

Returns a mutable reference to the stored map of named parameters to their respective values.

[src]

Returns a reference to the stored vector of unnamed parameters.

[src]

Returns a mutable reference to the stored vector of unnamed parameters.

[src]

Returns true if a flag with the specified name was set in the parsed arguments.

[src]

Returns a reference to the specified named parameter's value. If no such parameter was set in the parsed arguments, returns None.

Panics

Panics if the specified type does not match the specified parameter's associated type.

[src]

Returns a mutable reference to the specified named parameter's value. If no such parameter was set in the parsed arguments, returns None.

Panics

Panics if the specified type does not match the specified parameter's associated type.

[src]

Returns the number of stored unnamed parameters.

[src]

Returns a reference to the unnamed parameter at the specified zero-based index.

Panics

Panics if the index is higher than or equal to the number of stored unnamed parameters.

[src]

Returns a mutable reference to the unnamed parameter at the specified zero-based index.

Panics

Panics if the index is higher than or equal to the number of stored unnamed parameters.

Trait Implementations

impl Default for ParsingResults
[src]

[src]

Returns the "default value" for a type. Read more

impl Debug for ParsingResults
[src]

[src]

Formats the value using the given formatter.