Enum parkour::ErrorInner [−][src]
The error type when parsing command-line arguments
Variants
The argument you tried to parse wasn't present at the current position.
Has a similar purpose as Option::None
The argument you tried to parse wasn't present at the current position, but was required
IncompleteValue(usize)
The argument you tried to parse was only partly present
Used when an argument should abort argument parsing, like --help
InArgument(String)
Indicates that the error originated in the specified argument. This should be used as the source for another error
InSubcommand(String)
Indicates that the error originated in the specified subcommand. This should be used as the source for another error
The parsed value doesn't meet our expectations
Fields of UnexpectedValue
The parsed list contains more items than allowed
Fields of TooManyValues
The parsed array has the wrong length
Fields of WrongNumberOfValues
A required argument was not provided
Fields of MissingArgument
arg: String
The name of the argument that is missing
An unknown argument was provided
Fields of UnexpectedArgument
arg: String
The (full) argument that wasn't expected
An argument was provided more often than allowed
Fields of TooManyArgOccurrences
ParseIntError(ParseIntError)
Parsing an integer failed
ParseFloatError(ParseFloatError)
Parsing a floating-point number failed
Trait Implementations
impl Debug for ErrorInner
[src]
impl From<ErrorInner> for Error
[src]
fn from(inner: ErrorInner) -> Self
[src]
impl PartialEq<ErrorInner> for ErrorInner
[src]
fn eq(&self, other: &ErrorInner) -> bool
[src]
fn ne(&self, other: &ErrorInner) -> bool
[src]
impl StructuralPartialEq for ErrorInner
[src]
Auto Trait Implementations
impl RefUnwindSafe for ErrorInner
[src]
impl Send for ErrorInner
[src]
impl Sync for ErrorInner
[src]
impl Unpin for ErrorInner
[src]
impl UnwindSafe for ErrorInner
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,