#[repr(C, u8)]pub enum MenuItem {
String(StringMenuItem),
Separator,
BreakLine,
}Expand description
Represents a single item in a menu.
Menu items can be regular text items with labels and callbacks, visual separators, or line breaks for horizontal menu layouts.
Variants§
String(StringMenuItem)
A regular menu item with a label, optional icon, callback, and sub-items
Separator
A visual separator line (only rendered in vertical layouts)
BreakLine
Forces a line break when the menu is laid out horizontally
Trait Implementations§
Source§impl FromIterator<MenuItem> for MenuItemVec
impl FromIterator<MenuItem> for MenuItemVec
Source§impl Ord for MenuItem
impl Ord for MenuItem
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for MenuItem
impl PartialOrd for MenuItem
impl Eq for MenuItem
impl StructuralPartialEq for MenuItem
Auto Trait Implementations§
impl Freeze for MenuItem
impl RefUnwindSafe for MenuItem
impl Send for MenuItem
impl Sync for MenuItem
impl Unpin for MenuItem
impl UnsafeUnpin for MenuItem
impl UnwindSafe for MenuItem
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