pub enum Item<'a> {
Action {
name: &'a str,
hotkey: Option<char>,
exp: Option<&'a str>,
},
SubMenu {
name: &'a str,
hotkey: Option<char>,
exp: Option<&'a str>,
items: Vec<Item<'a>>,
},
}
Expand description
Anything that can be listed in a menu.
Variants
Action
Fields
name: &'a str
Action name.
A menu item to execute an action.
SubMenu
Fields
name: &'a str
Sub menu name. It can be distinguished by the +
character before it.
A menu item to enter branch menus.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Item<'a>
impl<'a> UnwindSafe for Item<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more