pub trait VariantMetadata {
    const VARIANT_COUNT: usize;
    const VARIANT_NAMES: &'static [&'static str];

    // Required method
    fn variant_name(&self) -> &'static str;
}

Required Associated Constants§

source

const VARIANT_COUNT: usize

source

const VARIANT_NAMES: &'static [&'static str]

Required Methods§

source

fn variant_name(&self) -> &'static str

Object Safety§

This trait is not object safe.

Implementors§