pub trait EnumKind: Copy {
type Tag;
// Required methods
fn to_tag(self) -> Self::Tag;
fn from_tag(tag: Self::Tag) -> Self;
}Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".