Enum gumdrop::Opt
[−]
[src]
pub enum Opt<'a> { Short(char), Long(&'a str), LongWithArg(&'a str, &'a str), Free(&'a str), }
Represents an option parsed from a Parser
Variants
Short(char)
Short option, e.g. -o
Long(&'a str)
Long option, e.g. --option
LongWithArg(&'a str, &'a str)
Long option with argument, e.g. --option=value
Free(&'a str)
Free argument
Trait Implementations
impl<'a> Copy for Opt<'a>
[src]
impl<'a> Clone for Opt<'a>
[src]
fn clone(&self) -> Opt<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more