#[non_exhaustive]pub enum ParseError<'a> {
MissingRequiredArgument {
name: &'a str,
},
NonAsciiShortOption,
ParseValueError {
value: &'a str,
expected: &'static str,
},
UnexpectedArgument {
value: &'a str,
},
UnexpectedLongOption {
name: &'a str,
},
UnexpectedShortOption {
name: char,
},
UnknownCommand,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MissingRequiredArgument
NonAsciiShortOption
ParseValueError
UnexpectedArgument
UnexpectedLongOption
UnexpectedShortOption
UnknownCommand
Trait Implementations§
Source§impl<'a> Debug for ParseError<'a>
impl<'a> Debug for ParseError<'a>
Source§impl<'a> From<FromArgumentError<'a>> for ParseError<'a>
impl<'a> From<FromArgumentError<'a>> for ParseError<'a>
Source§fn from(error: FromArgumentError<'a>) -> Self
fn from(error: FromArgumentError<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a, E: Error> From<ParseError<'a>> for ProcessError<'a, E>
impl<'a, E: Error> From<ParseError<'a>> for ProcessError<'a, E>
Source§fn from(value: ParseError<'a>) -> Self
fn from(value: ParseError<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for ParseError<'a>
impl<'a> RefUnwindSafe for ParseError<'a>
impl<'a> Send for ParseError<'a>
impl<'a> Sync for ParseError<'a>
impl<'a> Unpin for ParseError<'a>
impl<'a> UnwindSafe for ParseError<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more