MenuEntryRichString

Trait MenuEntryRichString 

Source
pub trait MenuEntryRichString {
    type Entry;

    // Required method
    fn render_rich_string(
        &self,
        entry: MenuEntryToRender<'_, Self::Entry>,
        buf: &mut String,
    ) -> Style;
}

Required Associated Types§

Required Methods§

Source

fn render_rich_string( &self, entry: MenuEntryToRender<'_, Self::Entry>, buf: &mut String, ) -> Style

Implementors§

Source§

impl<F, E> MenuEntryRichString for MenuEntryRichStringFn<F, E>
where F: Fn(MenuEntryToRender<'_, E>, &mut String) -> Style,

Source§

type Entry = E