Struct RichFormatter
#[non_exhaustive]
pub struct RichFormatter;
Richly formatted error context
This follows the rustc diagnostic style guide.
Trait Implementations
impl ErrorFormatter for RichFormatter
fn format_error(error: &Error<Self>) -> StyledStr
Auto Trait Implementations
impl Freeze for RichFormatter
impl RefUnwindSafe for RichFormatter
impl Send for RichFormatter
impl Sync for RichFormatter
impl Unpin for RichFormatter
impl UnsafeUnpin for RichFormatter
impl UnwindSafe for RichFormatter
Blanket Implementations
impl<T> Any for RichFormatter
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for RichFormatter
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for RichFormatter
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for RichFormatter
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for RichFormatter
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for RichFormatter
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for RichFormatter
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>