Skip to main content

Failure

Derive Macro Failure 

Source
#[derive(Failure)]
{
    // Attributes available to this derive:
    #[wolfram]
}
Expand description

Derive From<Enum> for Expr for an error enum: each variant becomes its Failure["VariantName", <|fields|>] expression (the expr! boilerplate one would otherwise write by hand, inferred from the enum).