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
A menu item to execute an action.
SubMenu
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