[src]

Enum getopts::HasArg

pub enum HasArg {
    Yes,
    No,
    Maybe,
}

Describes whether an option has an argument.

Variants

Yes

The option requires an argument.

No

The option is just a flag, therefore no argument.

Maybe

The option argument is optional and it could or not exist.

Trait Implementations

Derived Implementations

impl Eq for HasArg

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

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

impl Clone for HasArg

fn clone(&self) -> HasArg