pub enum Arg<'a, O: Default, P: Default> {
    Binary(BinaryProperties<'a, O, P>),
    Param(ParamProperties<'a, O, P>),
    Option(OptionProperties<'a, O, P>),
}
Expand description

An enum with variants for the 3 different types of parsed arguments. Each variant has an associated struct which holds the properties for that type of argument.

The Parser’s parse functions will return an array of these variants, one for each argument parsed, if the parse operation was successful.

Variants

Binary(BinaryProperties<'a, O, P>)

The first argument which normally holds the binary/executable’s path or name.

Param(ParamProperties<'a, O, P>)

A parameter parsed argument.

Option(OptionProperties<'a, O, P>)

An option parsed argument.

Trait Implementations

Formats the value using the given formatter. 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.