#[non_exhaustive]pub enum InterpretError<'a> {
OptionInapplicableForFunction {
clashing: OptionOccurrence<'a>,
function: OptionOccurrence<'a>,
},
}Expand description
Error in interpreting command line arguments
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.
OptionInapplicableForFunction
Short option that cannot be used with the -f option
Fields
§
clashing: OptionOccurrence<'a>Occurrence of the option that conflicts with the -f option
§
function: OptionOccurrence<'a>Occurrence of the -f option
Implementations§
Trait Implementations§
Source§impl<'a> Clone for InterpretError<'a>
impl<'a> Clone for InterpretError<'a>
Source§fn clone(&self) -> InterpretError<'a>
fn clone(&self) -> InterpretError<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for InterpretError<'a>
impl<'a> Debug for InterpretError<'a>
Source§impl<'a> Display for InterpretError<'a>
impl<'a> Display for InterpretError<'a>
Source§impl<'a> Error for InterpretError<'a>
impl<'a> Error for InterpretError<'a>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl<'a> From<&'a InterpretError<'a>> for Report<'a>
impl<'a> From<&'a InterpretError<'a>> for Report<'a>
Source§fn from(error: &'a InterpretError<'_>) -> Self
fn from(error: &'a InterpretError<'_>) -> Self
Converts to this type from the input type.
Source§impl<'a> PartialEq for InterpretError<'a>
impl<'a> PartialEq for InterpretError<'a>
impl<'a> Eq for InterpretError<'a>
impl<'a> StructuralPartialEq for InterpretError<'a>
Auto Trait Implementations§
impl<'a> Freeze for InterpretError<'a>
impl<'a> !RefUnwindSafe for InterpretError<'a>
impl<'a> !Send for InterpretError<'a>
impl<'a> !Sync for InterpretError<'a>
impl<'a> Unpin for InterpretError<'a>
impl<'a> UnsafeUnpin for InterpretError<'a>
impl<'a> !UnwindSafe for InterpretError<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more