Expand description
A simple crate that shorten’s color_eyre’s names.
Run [cew::init()] to initialize color_eyre
[cew::R] is short for color_eyre::Result
[cew::U] is short for [color_eyre::Result<()>]
[cew::e!(..)] is short for [color_eyre::eyre::eyre!(..)]
[cew::me!(..)] is short for [Err(color_eyre::eyre::eyre!(..))]
Also adds the globally implemented Pipe, Inspect, and Lay
traits that provides a function to reduce the amount of stacked parenthesis.
Re-exports
pub use color_eyre;
Macros
- Construct an ad-hoc error from a string.
- Construct an ad-hoc
color_eyre::Result::Errfrom a string
Traits
- Trait to prevent big wrapping ’()’s everywhere.
Functions
- Initializes
color_eyre
Type Aliases
- type alias for
Result<T, Report> - type alias for
Result<(), Report>