Enum argonaut::OptName
[−]
[src]
pub enum OptName<T: Borrow<str>> { Long(T), LongAndShort(T, char), }
The name of an optional argument.
Variants
Long(T)
--help
.
LongAndShort(T, char)
--help
| -h
.
Methods
impl<T: Borrow<str>> OptName<T>
[src]
fn borrow_long<'a>(&'a self) -> &'a str
The 'long' component of the name.
Trait Implementations
impl<T: Debug + Borrow<str>> Debug for OptName<T>
[src]
impl<T: Clone + Borrow<str>> Clone for OptName<T>
[src]
fn clone(&self) -> OptName<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more