pub trait TaggedEnum {
    type Tag;

    // Required method
    fn tag(&self) -> Self::Tag;
}
Expand description

A trait that is automatically implemented for any enum type with the attribute #[derive(Tag)].

Required Associated Types§

Required Methods§

source

fn tag(&self) -> Self::Tag

Implementors§