pub struct ClapError {
pub error: String,
pub error_type: ClapErrorType,
}Expand description
Command line argument parser error
Fields§
§error: StringFormated error message
error_type: ClapErrorTypeCommand line argument parser error type
Implementations§
Trait Implementations§
source§impl Error for ClapError
impl Error for ClapError
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
Auto Trait Implementations§
impl Freeze for ClapError
impl RefUnwindSafe for ClapError
impl Send for ClapError
impl Sync for ClapError
impl Unpin for ClapError
impl UnwindSafe for ClapError
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