Crate cew

source ·
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!(..))

Re-exports

Macros

  • Construct an ad-hoc error from a string.
  • Construct an ad-hoc color_eyre::Result::Err from a string

Functions

  • Initialize color_eyre

Type Aliases

  • type alias for Result<T, Report>
  • type alias for Result<(), Report>