Trait relm::DisplayVariant

source ·
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§

source

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

Formats the current variant of the enum.

Implementations on Foreign Types§

source§

impl DisplayVariant for ()

source§

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

Implementors§