Trait MenuEntryView

Source
pub trait MenuEntryView<T> {
    // Required methods
    fn normal<F: Frame, C: ColModify>(
        &mut self,
        entry: &T,
        context: ViewContext<C>,
        frame: &mut F,
    ) -> MenuEntryViewInfo;
    fn selected<F: Frame, C: ColModify>(
        &mut self,
        entry: &T,
        context: ViewContext<C>,
        frame: &mut F,
    ) -> MenuEntryViewInfo;
}

Required Methods§

Source

fn normal<F: Frame, C: ColModify>( &mut self, entry: &T, context: ViewContext<C>, frame: &mut F, ) -> MenuEntryViewInfo

Source

fn selected<F: Frame, C: ColModify>( &mut self, entry: &T, context: ViewContext<C>, frame: &mut F, ) -> MenuEntryViewInfo

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> MenuEntryView<T> for MenuEntryStylePair
where for<'a> &'a T: Into<&'a str>,