Skip to main content

error

Attribute Macro error 

Source
#[error]
Expand description

Declare the module’s error domain from a unit-variant enum with explicit discriminants. The module macro generates the matching ErrorReport implementation.