pub enum Error<'a> {
UnknownArg,
InvalidArg,
MissingRequiredArgs(Vec<&'a str>),
WrongNumValues(&'a str, &'a NumValues, Value),
WrongValueType(Value),
WrongCastType(String),
InvalidValue(String, String),
Override(&'a str),
UnknownArgs(Vec<String>),
BadInput,
}Variants§
UnknownArg
InvalidArg
MissingRequiredArgs(Vec<&'a str>)
WrongNumValues(&'a str, &'a NumValues, Value)
WrongValueType(Value)
WrongCastType(String)
InvalidValue(String, String)
Override(&'a str)
UnknownArgs(Vec<String>)
BadInput
Trait Implementations§
impl<'a> StructuralPartialEq for Error<'a>
Auto Trait Implementations§
impl<'a> Freeze for Error<'a>
impl<'a> RefUnwindSafe for Error<'a>
impl<'a> Send for Error<'a>
impl<'a> Sync for Error<'a>
impl<'a> Unpin for Error<'a>
impl<'a> UnwindSafe for Error<'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