Enum gumdrop::Opt [] [src]

pub enum Opt<'a> {
    Short(char),
    Long(&'a str),
    LongWithArg(&'a str, &'a str),
    Free(&'a str),
}

Represents an option parsed from a Parser

Variants

Short option, e.g. -o

Long option, e.g. --option

Long option with argument, e.g. --option=value

Free argument

Trait Implementations

impl<'a> Copy for Opt<'a>
[src]

impl<'a> Clone for Opt<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Debug for Opt<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> Eq for Opt<'a>
[src]

impl<'a> PartialEq for Opt<'a>
[src]

[src]

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

[src]

This method tests for !=.