[src]

Struct getopts::Opt

pub struct Opt {
    name: Name,
    hasarg: HasArg,
    occur: Occur,
    // some fields omitted
}

A description of a possible option.

Fields

name

Name of the option

hasarg

Whether it has an argument

occur

How often it can occur

Trait Implementations

Derived Implementations

impl Eq for Opt

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

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

impl Clone for Opt

fn clone(&self) -> Opt