pub trait EnumTag { type Tag; // Required method fn tag(&self) -> Self::Tag; }
Trait implemented by enum types.
enum
This trait usually is implemented via #[derive(EnumTag)].
#[derive(EnumTag)]
The type of the enum’s tag.
Returns the tag of self where Self is a Rust enum type.
self
Self