pub struct MenuDef {
pub commands: Vec<String>,
pub submenus: Vec<(String, u32)>,
}Expand description
What one menu offers.
Fields§
§commands: Vec<String>The commands its keys run, in key order, each once.
Keys that switch to another menu: (label, menu number).
Trait Implementations§
impl Eq for MenuDef
impl StructuralPartialEq for MenuDef
Auto Trait Implementations§
impl Freeze for MenuDef
impl RefUnwindSafe for MenuDef
impl Send for MenuDef
impl Sync for MenuDef
impl Unpin for MenuDef
impl UnsafeUnpin for MenuDef
impl UnwindSafe for MenuDef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more