Crate dyn_error

source ·
Expand description

This crate provides error-related utility macros.

In particular, its core feature resides in the automatic implementation of a wide range of equality checks via the impl_err_equality macro, which is especially useful in documentation examples as well as in testing.

Macros§

  • Convenience macro declaring a type alias for Result<T, Box<dyn std::error::Error>>.
  • Given an existing type E implementing the Error and PartialEq traits, automatically provides an implementation for the following equality checks and for the symmetric ones: