Enum gong::Item[][src]

pub enum Item<'a> {
    NonOption(usize, &'a str),
    EarlyTerminator(usize),
    Long(usize, &'a str),
    LongWithData {
        i: usize,
        n: &'a str,
        d: &'a str,
        l: DataLocation,
    },
    Short(usizechar),
    ShortWithData {
        i: usize,
        c: char,
        d: &'a str,
        l: DataLocation,
    },
}

Non-problematic items. See ItemClass documentation for details.

Variants

Argument not considered an option.

Early terminator (--) encountered.

Long option match.

Long option match, with expected data argument.

Fields of LongWithData

Short option match.

Short option match, with expected data argument.

Fields of ShortWithData

Trait Implementations

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

Formats the value using the given formatter. Read more

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

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

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

This method tests for !=.

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

Auto Trait Implementations

impl<'a> Send for Item<'a>

impl<'a> Sync for Item<'a>