pub trait DisplayVariant {
// Required method
fn display_variant(&self) -> &'static str;
}Expand description
Format trait for enum variants.
DisplayVariant is similar to Debug, but only works on enum and does not list the
variants’ parameters.
This is used internally by the library.
Required Methods§
Sourcefn display_variant(&self) -> &'static str
fn display_variant(&self) -> &'static str
Formats the current variant of the enum.