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
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.
Formats the value using the given formatter.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
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.