openvm_circuit_derive

Derive Macro AnyEnum

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

Derives AnyEnum trait on an enum type. By default an enum arm will just return self as &dyn Any.

Use the #[any_enum] field attribute to specify that the arm itself implements AnyEnum and should call the inner as_any_kind method.