Enum app::OptTypo [] [src]

pub enum OptTypo {
    Single,
    Ignored,
    Covered,
    Multiple(Option<usize>),
}

OptionType

You should ignore OptTypo if the Opt is a flag(trait OptValueParse: is_bool).

Variants

App will exit if the Opt occurs for the second time.

App will ignore all values of the Opt except the first time.

Default: App will overwrite the previous value with a later value.

App will accumulate all values of the Opt if the Opt's value is Vec<T> or &mut [T], otherwise it equal to Covered(default).

The value is the length set for Vec<T> or &[T], default is None or the length of &mut [T].

Methods

impl OptTypo
[src]

[src]

[src]

[src]

[src]

[src]

If it not a OptTypo::Multiple(_), will panic

[src]

Set it as OptTypo::Multiple(_)

Trait Implementations

impl Debug for OptTypo
[src]

[src]

Formats the value using the given formatter.

impl Clone for OptTypo
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for OptTypo
[src]

[src]

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

[src]

This method tests for !=.

impl Default for OptTypo
[src]

[src]

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