Struct getopts::OptUnstable [-] [+] [src]

pub struct Opt {
    pub name: Name,
    pub hasarg: HasArg,
    pub occur: Occur,
    pub aliases: Vec<Opt>,
}

A description of a possible option.

Fields

name

Name of the option

hasarg

Whether it has an argument

occur

How often it can occur

aliases

Which options it aliases

Trait Implementations

Derived Implementations

impl Debug for Opt

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

impl Eq for Opt

impl PartialEq for Opt

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

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

impl Clone for Opt

fn clone(&self) -> Opt

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