pub trait MenuItem<D>: Marker {
    // Required methods
    fn interact(&mut self) -> D;
    fn set_style<C, S, IT, P>(&mut self, style: &MenuStyle<C, S, IT, P>)
       where C: PixelColor,
             S: IndicatorStyle,
             IT: InteractionController,
             P: SelectionIndicatorController;
    fn title(&self) -> &str;
    fn details(&self) -> &str;
    fn value(&self) -> &str;
}

Required Methods§

source

fn interact(&mut self) -> D

source

fn set_style<C, S, IT, P>(&mut self, style: &MenuStyle<C, S, IT, P>)where C: PixelColor, S: IndicatorStyle, IT: InteractionController, P: SelectionIndicatorController,

source

fn title(&self) -> &str

source

fn details(&self) -> &str

source

fn value(&self) -> &str

Implementors§

source§

impl<R> MenuItem<R> for NavigationItem<'_, R>where R: Copy,

source§

impl<R, S> MenuItem<R> for Select<'_, R, S>where S: SelectValue,