Skip to main content Crate witcher Copy item path Source prelude Import all essential symbols in a simple consumable way bail Bail early from a function with an Error. err err! works just like bail! but doesn’t returnmatch_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 errorError Error is a wrapper providing additional context and chaining of errors.Wrapper Define the wrap function for Result types Result Result<T> is a simplified return type to use throughout your application.