Enum gong::analysis::ItemW [−][src]
pub enum ItemW<'a> { UnknownLong(usize, &'a str), UnknownShort(usize, char), 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(usize, char)
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: usize | |
n: &'a str | |
d: &'a str |
Trait Implementations
impl<'a> Debug for ItemW<'a>
[src]
impl<'a> Debug for ItemW<'a>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> Clone for ItemW<'a>
[src]
impl<'a> Clone for ItemW<'a>
fn clone(&self) -> ItemW<'a>
[src]
fn clone(&self) -> ItemW<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<'a> Copy for ItemW<'a>
[src]
impl<'a> Copy for ItemW<'a>
impl<'a> PartialEq for ItemW<'a>
[src]
impl<'a> PartialEq for ItemW<'a>
fn eq(&self, other: &ItemW<'a>) -> bool
[src]
fn eq(&self, other: &ItemW<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ItemW<'a>) -> bool
[src]
fn ne(&self, other: &ItemW<'a>) -> bool
This method tests for !=
.
impl<'a> Eq for ItemW<'a>
[src]
impl<'a> Eq for ItemW<'a>