Struct flood_tide::NameVal[][src]

pub struct NameVal<'a> {
    pub opt: &'a Opt<'a>,
    pub val: Option<&'a str>,
    pub was_long: bool,
}
Expand description

Entity as the result of lex

Fields

opt: &'a Opt<'a>val: Option<&'a str>was_long: bool

Implementations

long name or short name

At the compiling with feature = “was_long”, this return a result according to a command line keyword Otherwise this return long name or short name.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.