Enum getopts::Fail [] [src]

pub enum Fail {
    ArgumentMissing(String),
    UnrecognizedOption(String),
    OptionMissing(String),
    OptionDuplicated(String),
    UnexpectedArgument(String),
}
Unstable (rustc_private)

: use the crates.io getopts library instead

The type returned when the command line does not conform to the expected format. Use the Debug implementation to output detailed information.

Variants

ArgumentMissing(String)
Unstable (rustc_private)

: use the crates.io getopts library instead

The option requires an argument but none was passed.

UnrecognizedOption(String)
Unstable (rustc_private)

: use the crates.io getopts library instead

The passed option is not declared among the possible options.

OptionMissing(String)
Unstable (rustc_private)

: use the crates.io getopts library instead

A required option is not present.

OptionDuplicated(String)
Unstable (rustc_private)

: use the crates.io getopts library instead

A single occurrence option is being used multiple times.

UnexpectedArgument(String)
Unstable (rustc_private)

: use the crates.io getopts library instead

There's an argument being passed to a non-argument option.

Trait Implementations

impl Display for Fail
[src]

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

Formats the value using the given formatter.

Derived Implementations

impl Debug for Fail
[src]

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

Formats the value using the given formatter.

impl Eq for Fail
[src]

impl PartialEq for Fail
[src]

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

This method tests for self and other values to be equal, and is used by ==. Read more

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

This method tests for !=.

impl Clone for Fail
[src]

fn clone(&self) -> Fail

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more