pub enum MenuItem<'a> {
Text(&'a str),
Separator,
}
Available on crate feature
ui
only.Expand description
A menu item.
Can be added with PopupMenu::insert_menu_item
.
Variants§
Trait Implementations§
impl<'a> Copy for MenuItem<'a>
impl<'a> Eq for MenuItem<'a>
impl<'a> StructuralPartialEq for MenuItem<'a>
Auto Trait Implementations§
impl<'a> Freeze for MenuItem<'a>
impl<'a> RefUnwindSafe for MenuItem<'a>
impl<'a> Send for MenuItem<'a>
impl<'a> Sync for MenuItem<'a>
impl<'a> Unpin for MenuItem<'a>
impl<'a> UnwindSafe for MenuItem<'a>
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