Enum gong::analysis::ItemW[][src]

pub enum ItemW<'a> {
    UnknownLong(usize, &'a str),
    UnknownShort(usizechar),
    LongWithNoName(usize),
    LongWithUnexpectedData {
        i: usize,
        n: &'a str,
        d: &'a str,
    },
}

Warn-level items. See ItemClass documentation for details.

Variants

Looked like a long option, but no match [WARN]

Unknown short option char [WARN]

Looked like a long option, but a name was not actually specified. This only occurs for arguments starting with --= (in standard mode, -= in alternate mode). Because the first = in a long option argument is interpreted as indication that any subsequent characters are a data sub-argument, an = immediately following the long option prefix thus gives an empty option name. The data (if any) is ignored. [WARN]

Long option match, but came with unexpected data. For example --foo=bar when --foo takes no data. [WARN]

Fields of LongWithUnexpectedData

Trait Implementations

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

Formats the value using the given formatter. Read more

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

impl<'a> PartialEq for ItemW<'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 ItemW<'a>
[src]

Auto Trait Implementations

impl<'a> Send for ItemW<'a>

impl<'a> Sync for ItemW<'a>