Skip to main content

Crate dterror_derive

Crate dterror_derive 

Source
Expand description

Procedural macros for the dterror crate. #[derive(CtxError)] generates code for error types. #[derive(FromContext)] generates code for kind types.

Use documentation is in the dterror crate.

Derive Macrosยง

CtxError
Derives an implementation of dterror::CtxError for an error type.
FromContext
Derives an implementation of dterror::FromContext for a kind type (a plain, non-error type).