#[repr(C)]pub struct MenuEntryDesc {
pub kind: MenuEntryKind,
pub title: Str,
pub shortcut: ShortcutDesc,
pub action: Option<ActionFn>,
pub entries: Slice<MenuEntryDesc>,
}Expand description
One entry of a menu. Which fields matter depends on kind:
Item:title,shortcut, andaction.Submenu:titleandentries.
Fields§
§kind: MenuEntryKind§title: Str§shortcut: ShortcutDesc§action: Option<ActionFn>§entries: Slice<MenuEntryDesc>Trait Implementations§
Auto Trait Implementations§
impl !Send for MenuEntryDesc
impl Freeze for MenuEntryDesc
impl RefUnwindSafe for MenuEntryDesc
impl Sync for MenuEntryDesc
impl Unpin for MenuEntryDesc
impl UnsafeUnpin for MenuEntryDesc
impl UnwindSafe for MenuEntryDesc
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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