pub enum ArgError {
MissingRequired {
name: &'static str,
kind: ArgKind,
},
TooManyArgs {
expected: usize,
got: usize,
},
InvalidValue {
name: &'static str,
kind: ArgKind,
value: String,
},
}Expand description
Error type for argument binding failures.
Variants§
MissingRequired
A required argument is missing.
TooManyArgs
Too many arguments provided.
InvalidValue
Argument value could not be parsed as expected type.
Trait Implementations§
impl Eq for ArgError
impl StructuralPartialEq for ArgError
Auto Trait Implementations§
impl Freeze for ArgError
impl RefUnwindSafe for ArgError
impl Send for ArgError
impl Sync for ArgError
impl Unpin for ArgError
impl UnsafeUnpin for ArgError
impl UnwindSafe for ArgError
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