//! Utilities for error formatting.
use ;
/// Helper struct to display errors in a pretty-printed style.
///
/// In some situations, such as when reading an error from a Bevy event reader,
/// you may only have access to an error behind a shared reference. Use
/// [`pretty_error`] to wrap that reference a [`PrettyError`], making the
/// alternative [`fmt::Display`] impl format the entire error chain, in the
/// same style as [`anyhow`](https://docs.rs/anyhow).
;
/// Wraps a shared reference to an error in order to make its [`fmt::Display`]
/// impl write the entire error chain.
///
/// See [`PrettyError`].
pub const