[src]

Enum getopts::Name

pub enum Name {
    Long(~str),
    Short(char),
}

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

Variants

Long

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

Short

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

Trait Implementations

Derived Implementations

impl Eq for Name

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

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

impl Clone for Name

fn clone(&self) -> Name