EnumKind

Trait EnumKind 

Source
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§

Source

fn to_tag(self) -> Self::Tag

Source

fn from_tag(tag: Self::Tag) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§