Struct RichFormatter

struct RichFormatter

Richly formatted error context

This follows the rustc diagnostic style guide.

Implementations

impl ErrorFormatter for RichFormatter

fn format_error(error: &Error<Self>) -> StyledStr

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

impl<T> Any for RichFormatter

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for RichFormatter

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for RichFormatter

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> From for RichFormatter

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for RichFormatter

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for RichFormatter

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for RichFormatter

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>