#[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
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more