[][src]Crate witcher

Modules

prelude

Import all essential symbols in a simple consumable way

Macros

bail

Bail early from a function with an Error.

err

err! works just like bail! but doesn't return

match_err

Match on error types. This only works with errors implementing the std::error::Error trait as it makes use of the standard is and downcast_ref implementations.

wrap

wrap! behaves much like the venerable bail! but wraps an external error

Structs

Error

Error is a wrapper providing additional context and chaining of errors.

Constants

WITCHER_COLOR

Environment variable name for enabling/disabling color

WITCHER_FULLSTACK

Environment variable name for enabling/disabling fullstack tracing

Traits

Wrapper

Define the wrap function for Result types

Type Definitions

Result

Result<T> is a simplified return type to use throughout your application.