Skip to main content

Crate ohno_macros

Crate ohno_macros 

Source
Expand description

Macros for the ohno crate.

§Macros

  • #[derive(Error)] - Automatically implement error traits
  • #[enrich_err("message")] - Add error enrichment with file/line information to function errors

Attribute Macros§

enrich_err
Attribute macro for adding error enrichment with file and line info to function errors.
error
Attribute macro version of error_type that preserves documentation comments.

Derive Macros§

Error
Derive macro for automatically implementing error traits.