Attribute Macro tuxedo_core::aggregate

source ·
#[aggregate]
Expand description

Automatically implements From for each type in an aggregate type enum.

The supplied enum should have a single unnamed type parameter for each variant. And the type for each variant should be unique in the enum.

The macro generates all the From implementations automatically.