Enum getopts::Fail [−][src]
pub enum Fail {
ArgumentMissing(String),
UnrecognizedOption(String),
OptionMissing(String),
OptionDuplicated(String),
UnexpectedArgument(String),
}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)The option requires an argument but none was passed.
UnrecognizedOption(String)The passed option is not declared among the possible options.
OptionMissing(String)A required option is not present.
OptionDuplicated(String)A single occurrence option is being used multiple times.
UnexpectedArgument(String)There's an argument being passed to a non-argument option.
Trait Implementations
impl Clone for Fail[src]
impl Clone for Failfn clone(&self) -> Fail[src]
fn clone(&self) -> FailReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for Fail[src]
impl Debug for Failfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for Fail[src]
impl PartialEq for Failfn eq(&self, other: &Fail) -> bool[src]
fn eq(&self, other: &Fail) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Fail) -> bool[src]
fn ne(&self, other: &Fail) -> boolThis method tests for !=.
impl Eq for Fail[src]
impl Eq for Failimpl Error for Fail[src]
impl Error for Failfn description(&self) -> &str[src]
fn description(&self) -> &strThis method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>1.0.0[src]
fn cause(&self) -> Option<&Error>1.0.0
[src]The lower-level cause of this error, if any. Read more
impl Display for Fail[src]
impl Display for Fail