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
  • #[ohno::error] - Turn a plain struct into an error type

Attribute Macros§

enrich_err
Attribute macro for adding error enrichment with file and line info to function errors.
error
Attribute macro that adds the OhnoCore field to a struct and derives the error traits.

Derive Macros§

Error
Derive macro for automatically implementing error traits.