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

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

UnknownLong(usize, &'a str)

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

UnknownShort(usizechar)

Unknown short option char [WARN]

LongWithNoName(usize)

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]

LongWithUnexpectedData

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

Fields of LongWithUnexpectedData

i: usizen: &'a strd: &'a str

Trait Implementations

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

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

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

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

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

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

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

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.