Crate witcher

Source

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.

Traits§

Wrapper
Define the wrap function for Result types

Type Aliases§

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