Struct clap::error::DefaultFormatter
source · #[non_exhaustive]pub struct DefaultFormatter;
Expand description
Richly formatted error context
This follows the rustc diagnostic style guide.
Trait Implementations§
source§impl ErrorFormatter for RichFormatter
impl ErrorFormatter for RichFormatter
source§fn format_error(error: &Error) -> StyledStr
fn format_error(error: &Error) -> StyledStr
Stylize the error for the terminal
Auto Trait Implementations§
impl Freeze for RichFormatter
impl RefUnwindSafe for RichFormatter
impl Send for RichFormatter
impl Sync for RichFormatter
impl Unpin for RichFormatter
impl UnwindSafe for RichFormatter
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