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> Debug for Item<'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 Item<'a>
[src]
impl<'a> Clone for Item<'a>
fn clone(&self) -> Item<'a>
[src]
fn clone(&self) -> Item<'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)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'a> Copy for Item<'a>
[src]
impl<'a> Copy for Item<'a>
impl<'a> PartialEq for Item<'a>
[src]
impl<'a> PartialEq for Item<'a>
fn eq(&self, other: &Item<'a>) -> bool
[src]
fn eq(&self, other: &Item<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Item<'a>) -> bool
[src]
fn ne(&self, other: &Item<'a>) -> bool
This method tests for !=
.
impl<'a> Eq for Item<'a>
[src]
impl<'a> Eq for Item<'a>