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