Enum fui_controls::MenuItem
source · pub enum MenuItem {
Separator,
Text {
text: String,
shortcut: Option<String>,
icon: Option<Rc<RefCell<dyn ControlObject>>>,
callback: Callback<()>,
sub_items: Vec<MenuItem>,
},
Custom {
content: Rc<RefCell<dyn ControlObject>>,
callback: Callback<()>,
sub_items: Vec<MenuItem>,
},
}
Variants§
Implementations§
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