Skip to main content

Crate maybe_fatal_derive

Crate maybe_fatal_derive 

Source
Expand description

Code generation for the maybe-fatal crate.

See maybe-fatal’s documentation for examples of how to use this crate.

Derive Macros§

Diagnose
Implements Diagnose for a struct with a span and an info field.
DiagnosticGroup
Implements DiagnosticGroup for an enum.
DiagnosticInfoWrapper
Implements DiagnosticGroup and PartialDiagnose for an enum with newtype variants that also implement DiagnosticGroup and PartialDiagnose.
PartialDiagnose
Implements PartialDiagnose for a struct or an enum with struct variants.