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(usize, char), ShortWithData { i: usize, c: char, d: &'a str, l: DataLocation, }, }
Non-problematic items. See ItemClass
documentation for details.
Variants
NonOption(usize, &'a str)
Argument not considered an option.
EarlyTerminator(usize)
Early terminator (--
) encountered.
Long(usize, &'a str)
Long option match.
LongWithData
Long option match, with expected data argument.
Fields of LongWithData
i: usize | |
n: &'a str | |
d: &'a str | |
l: DataLocation |
Short(usize, char)
Short option match.
ShortWithData
Short option match, with expected data argument.
Fields of ShortWithData
i: usize | |
c: char | |
d: &'a str | |
l: DataLocation |
Trait Implementations
impl<'a> Debug for Item<'a>
[src]
impl<'a> Clone for Item<'a>
[src]
fn clone(&self) -> Item<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> Copy for Item<'a>
[src]
impl<'a> PartialEq for Item<'a>
[src]
fn eq(&self, __arg_0: &Item<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Item<'a>) -> bool
[src]
This method tests for !=
.