[][src]Enum pixel_widgets::widget::menu::MenuItem

pub enum MenuItem<'a, T> {
    Item {
        content: Node<'a, T>,
        on_select: Option<T>,
    },
    Menu {
        content: Node<'a, T>,
        items: Vec<MenuItem<'a, T>>,
    },
}

An item in Menu.

Variants

Item

Item

Fields of Item

content: Node<'a, T>

The content of the item

on_select: Option<T>

Message to send when the item is clicked

Menu

Sub menu

Fields of Menu

content: Node<'a, T>

The content of the item

items: Vec<MenuItem<'a, T>>

MenuItems to show when this item is hovered

Auto Trait Implementations

impl<'a, T> !RefUnwindSafe for MenuItem<'a, T>

impl<'a, T> !Send for MenuItem<'a, T>

impl<'a, T> !Sync for MenuItem<'a, T>

impl<'a, T> Unpin for MenuItem<'a, T> where
    T: Unpin

impl<'a, T> !UnwindSafe for MenuItem<'a, T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.