Struct getopts::Opt [−] [src]

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

: use the crates.io getopts library instead

A description of a possible option.

Fields

name
Unstable

: use the crates.io getopts library instead

Name of the option

hasarg
Unstable

: use the crates.io getopts library instead

Whether it has an argument

occur
Unstable

: use the crates.io getopts library instead

How often it can occur

aliases
Unstable

: use the crates.io getopts library instead

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)