Enum getopts::Name [−] [src]

pub enum Name {
    Long(String),
    Short(char),
}
Unstable

: use the crates.io getopts library instead

Name of an option. Either a string or a single char.

Variants

Long
Unstable

: use the crates.io getopts library instead

A string representing the long name of an option. For example: "help"

Short
Unstable

: use the crates.io getopts library instead

A char representing the short name of an option. For example: 'h'

Trait Implementations

Derived Implementations

impl Debug for Name

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Eq for Name

impl PartialEq for Name

fn eq(&self, __arg_0: &Name) -> bool

fn ne(&self, __arg_0: &Name) -> bool

impl Clone for Name

fn clone(&self) -> Name

fn clone_from(&mut self, source: &Self)