Kinded

Trait Kinded 

Source
pub trait Kinded {
    type Kind: PartialEq + Eq + Debug + Clone + Copy + Kind;

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

A trait that can be implemented by a main enum type. Typically should be derived with #[derive(kinded::Kinded)].

Required Associated Types§

Required Methods§

Source

fn kind(&self) -> Self::Kind

Get a kind variant without data.

Implementors§