Derive Macro VariantDowncast

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

Derive macro generating an impl of the trait VariantDowncast.

struct Inner;

enum Outer {
    Inner(Inner),
    // ...
}

// The generated impl looks something along these lines:

impl VariantDowncast for Outer {}