pub struct MenuItem<'s, S1: IntoCStr, S2: IntoCStr> { /* private fields */ }
Implementations§
Source§impl<'s, S1: IntoCStr, S2: IntoCStr> MenuItem<'s, S1, S2>
impl<'s, S1: IntoCStr, S2: IntoCStr> MenuItem<'s, S1, S2>
pub fn build(self) -> bool
pub fn shortcut_opt<S3: IntoCStr>( self, shortcut: Option<S3>, ) -> MenuItem<'s, S1, S3>
pub fn shortcut<S3: IntoCStr>(self, shortcut: S3) -> MenuItem<'s, S1, S3>
pub fn selected(self, selected: bool) -> Self
pub fn enabled(self, enabled: bool) -> Self
Auto Trait Implementations§
impl<'s, S1, S2> Freeze for MenuItem<'s, S1, S2>
impl<'s, S1, S2> RefUnwindSafe for MenuItem<'s, S1, S2>
impl<'s, S1, S2> !Send for MenuItem<'s, S1, S2>
impl<'s, S1, S2> !Sync for MenuItem<'s, S1, S2>
impl<'s, S1, S2> Unpin for MenuItem<'s, S1, S2>
impl<'s, S1, S2> UnwindSafe for MenuItem<'s, S1, S2>
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