[][src]Struct gong::analysis::Analysis

pub struct Analysis<'a> {
    pub items: Vec<ItemClass<'a>>,
    pub error: bool,
    pub warn: bool,
}

Analysis of processing arguments against an option set

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)

Implementations

impl<'a> Analysis<'a>[src]

pub fn new(size_guess: usize) -> Self[src]

Create a new result set (mostly only useful internally)

pub fn add(&mut self, item: ItemClass<'a>)[src]

Add a new item to the analysis (mostly only useful internally)

Trait Implementations

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

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

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

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

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

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

Auto Trait Implementations

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

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

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

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

impl<'a> UnwindSafe for Analysis<'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.