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

Also adds the globally implemented Pipe, Inspect, and Lay traits that provides a function to reduce the amount of stacked parenthesis.

Re-exports

Macros

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

Traits

Functions

  • Initializes color_eyre

Type Aliases

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