[−][src]Enum simpleargs::OptionError
An error for an invalid named argument.
Variants
The named argument is unrecognized.
For example, the user passed --xyz
to the program, but there is no option named "xyz"
.
The named argument requires a parameter, but no parameter was supplied.
For example, the program accepts --output=<file>
, but an argument was passed as --output
with no parameter.
The named argument does not accept a parameter, but one was supplied.
For example, the program accepts --verbose
, but an argument was passed as --verbose=3
.
The named argument was passed a value which is not valid unicode.
The value for the named argument was invalid.
For example, the program accepts --jobs=<N>
with integer N, but the user passed in
--jobs=xyz
.
Trait Implementations
impl Debug for OptionError
[src]
impl<T> From<T> for OptionError where
T: Error + 'static,
[src]
T: Error + 'static,
fn from(x: T) -> OptionError
[src]
Auto Trait Implementations
impl !RefUnwindSafe for OptionError
impl !Send for OptionError
impl !Sync for OptionError
impl Unpin for OptionError
impl !UnwindSafe for OptionError
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<!> for 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.
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>,