Trait re_types::reflection::Enum

source ·
pub trait Enum: Sized + Copy + Clone + Hash + PartialEq + Eq + Display + 'static {
    // Required methods
    fn variants() -> &'static [Self];
    fn docstring_md(self) -> &'static str;
}
Expand description

A trait for code-generated enums.

Required Methods§

source

fn variants() -> &'static [Self]

All variants, in the order they appear in the enum.

source

fn docstring_md(self) -> &'static str

Markdown docstring for the given enum variant.

Object Safety§

This trait is not object safe.

Implementors§