pub trait TaggedEnum { type Tag; // Required method fn tag(&self) -> Self::Tag; }
A trait that is automatically implemented for any enum type with the attribute #[derive(Tag)].
#[derive(Tag)]