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)]
.
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)]
.