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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter. Read more

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

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

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

This method tests for !=.

Auto Trait Implementations

impl<'a> Send for Opt<'a>

impl<'a> Sync for Opt<'a>