Struct gong::Results [−][src]
Result data returned from analysing an argument list
Fields
items: Vec<ItemClass<'a>>
Set of items describing what was found
error: bool
Quick indication of error level issues (e.g. ambiguous match, or missing arg data)
warn: bool
Quick indication of warning level issues (e.g. unknown option, or unexpected data)
Methods
impl<'a> Results<'a>
[src]
impl<'a> Results<'a>
pub fn new(size_guess: usize) -> Self
[src]
pub fn new(size_guess: usize) -> Self
Create a new result set (mostly only useful internally)
pub fn add(&mut self, item: ItemClass<'a>)
[src]
pub fn add(&mut self, item: ItemClass<'a>)
Add a new item to the result set (mostly only useful internally)
Trait Implementations
impl<'a> Debug for Results<'a>
[src]
impl<'a> Debug for Results<'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 Results<'a>
[src]
impl<'a> Clone for Results<'a>
fn clone(&self) -> Results<'a>
[src]
fn clone(&self) -> Results<'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> PartialEq for Results<'a>
[src]
impl<'a> PartialEq for Results<'a>
fn eq(&self, other: &Results<'a>) -> bool
[src]
fn eq(&self, other: &Results<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Results<'a>) -> bool
[src]
fn ne(&self, other: &Results<'a>) -> bool
This method tests for !=
.
impl<'a> Eq for Results<'a>
[src]
impl<'a> Eq for Results<'a>