pub struct TextMenuItem {
pub id: u32,
pub text: String,
pub disabled: bool,
pub item_symbol: Option<ItemSymbol>,
pub sub_menu: Option<Rc<RefCell<SubMenu>>>,
}Available on crate feature
ui only.Fields§
§id: u32§text: String§disabled: bool§item_symbol: Option<ItemSymbol>Implementations§
Source§impl TextMenuItem
impl TextMenuItem
pub fn default_with_text(id: u32, text: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for TextMenuItem
impl Clone for TextMenuItem
Source§fn clone(&self) -> TextMenuItem
fn clone(&self) -> TextMenuItem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextMenuItem
impl Debug for TextMenuItem
Source§impl Default for TextMenuItem
impl Default for TextMenuItem
Source§fn default() -> TextMenuItem
fn default() -> TextMenuItem
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TextMenuItem
impl !RefUnwindSafe for TextMenuItem
impl !Send for TextMenuItem
impl !Sync for TextMenuItem
impl Unpin for TextMenuItem
impl !UnwindSafe for TextMenuItem
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