Skip to main content

Errorizable

Derive Macro Errorizable 

Source
#[derive(Errorizable)]
{
    // Attributes available to this derive:
    #[error]
    #[from]
}
Expand description

Derive macro for implementing error traits with automatic Display and From implementations

This macro automatically implements Display, Error, and From conversions for error enums, similar to the snafu crate.

ยงAttributes

  • #[error("format string")] - Specifies the display format for the variant
  • #[from] - Automatically implements From for the wrapped type