#[derive(VariantDowncast)]
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 {}