[][src]Struct neutrino::widgets::menubar::MenuItem

pub struct MenuItem { /* fields omitted */ }

An item of a MenuBar

Fields

name: String
functions: Vec<MenuFunction>

Default values

name: name.to_string()
functions: vec![]

Methods

impl MenuItem[src]

pub fn new(name: &str) -> Self[src]

Create a MenuItem

pub fn add(&mut self, function: MenuFunction)[src]

Add a MenuFunction

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,