Enum argonaut::DefinitionError
[−]
[src]
pub enum DefinitionError<'a> { SameShortName(&'a str, &'a str), OptionDefinedTwice(&'a str), PositionalDefinedTwice(&'a str), TwoTrailsDefined, }
An error found when defining the expected argument structure.
Variants
SameShortName(&'a str, &'a str)
Two optional arguments have the same short name (eg: both --verbose
and --version
using -v
).
OptionDefinedTwice(&'a str)
The optional name is defined twice.
PositionalDefinedTwice(&'a str)
The positional name is defined twice.
TwoTrailsDefined
Two trail definitions were given.
Trait Implementations
impl<'a> Debug for DefinitionError<'a>
[src]
impl<'a> PartialEq for DefinitionError<'a>
[src]
fn eq(&self, __arg_0: &DefinitionError<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DefinitionError<'a>) -> bool
This method tests for !=
.