Struct clap::error::KindFormatter
source · [−]#[non_exhaustive]pub struct KindFormatter;
Expand description
Report ErrorKind
No context is included.
NOTE: Consider removing the [error-context
][crate::_features] default feature if using this to remove all
overhead for RichFormatter
.
Trait Implementations
sourceimpl ErrorFormatter for KindFormatter
impl ErrorFormatter for KindFormatter
sourcefn format_error(error: &Error<Self>) -> StyledStr
fn format_error(error: &Error<Self>) -> StyledStr
Stylize the error for the terminal
Auto Trait Implementations
impl RefUnwindSafe for KindFormatter
impl Send for KindFormatter
impl Sync for KindFormatter
impl Unpin for KindFormatter
impl UnwindSafe for KindFormatter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more