Enum argparsnip::NumValues[][src]

pub enum NumValues {
    None,
    Fixed(usize),
    AtLeast(usize),
    Between(usizeusize),
    Any,
}
Expand description

The number of values users are able to assign an arg If None we will treat the arg as a flag. This is a special case because if flags are seen multiple times (e.g -vvv) we need to handle that as extra verbose by exposing the number of repetitions. This isn’t needed for normal flags though - just now we overwrite them, but in the future we may move to appending there

Variants

None
Fixed(usize)
AtLeast(usize)
Between(usizeusize)
Any

Trait Implementations

Formats the value using the given formatter. Read more

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Performs the conversion.

Performs the conversion.

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.