Struct ExAddItem
pub struct ExAddItem<'ex> { /* private fields */ }Expand description
Default-param extender for NativeMenu::add_item_ex.
Implementations§
§impl<'ex> ExAddItem<'ex>
impl<'ex> ExAddItem<'ex>
pub fn callback(self, callback: &'ex Callable) -> ExAddItem<'ex>
pub fn key_callback(self, key_callback: &'ex Callable) -> ExAddItem<'ex>
pub fn tag(self, tag: &'ex Variant) -> ExAddItem<'ex>
pub fn accelerator(self, accelerator: Key) -> ExAddItem<'ex>
pub fn index(self, index: i32) -> ExAddItem<'ex>
pub fn done(self) -> i32
Auto Trait Implementations§
impl<'ex> Freeze for ExAddItem<'ex>
impl<'ex> RefUnwindSafe for ExAddItem<'ex>
impl<'ex> !Send for ExAddItem<'ex>
impl<'ex> !Sync for ExAddItem<'ex>
impl<'ex> Unpin for ExAddItem<'ex>
impl<'ex> !UnwindSafe for ExAddItem<'ex>
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