enum-tags-traits 0.1.0

Traits for enum-tags crate.
Documentation
1
2
3
4
5
/// A trait that is automatically implemented for any enum type with the attribute `#[derive(Tag)]`.
pub trait TaggedEnum {
	type Tag;
	fn tag(&self) -> Self::Tag;
}