1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! Utility for pretty-printing errors.
//!
//! 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 [`as_pretty`] to wrap that reference a
//! [`PrettyError`], making the alternative [`Display`] impl format the entire error chain, in the
//! same style as [`anyhow::Error`].
use Display;
/// Helper struct to display errors in a pretty-printed style.
///
/// See the [module-level docs](self).
;
/// Wraps a shared reference to an error in order to make its [`Display`] impl write the entire
/// error chain.
///
/// See the [module-level docs](self).