pub struct Menu<T: Copy + Debug> { /* private fields */ }
Implementations§
Source§impl<T: PartialEq + Copy + Debug> Menu<T>
impl<T: PartialEq + Copy + Debug> Menu<T>
pub fn enable_item_by_id(&mut self, id: T)
pub fn disable_item_by_id(&mut self, id: T)
Source§impl<T: Copy + Debug> Menu<T>
impl<T: Copy + Debug> Menu<T>
pub fn new(name: Option<String>) -> Self
pub fn help(self, help: String) -> Self
pub fn push_separator(self) -> Self
pub fn push_entry(self, entry: MenuEntry<T>) -> Self
pub fn get_entry_from_event_id(&self, event_id: i32) -> Option<T>
pub fn enable_item(&mut self, i: usize)
pub fn disable_item(&mut self, i: usize)
pub fn insert(&mut self, i: usize, entry: MenuItem<T>)
pub fn remove(&mut self, i: usize)
pub fn popup(&self)
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Menu<T>
impl<T> RefUnwindSafe for Menu<T>where
T: RefUnwindSafe,
impl<T> !Send for Menu<T>
impl<T> !Sync for Menu<T>
impl<T> Unpin for Menu<T>where
T: Unpin,
impl<T> UnwindSafe for Menu<T>where
T: UnwindSafe,
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