pub struct SubItems<'a> {
pub label: Option<&'a mut dyn Tile>,
pub label2: Option<&'a mut dyn Tile>,
pub submenu: Option<&'a mut dyn Tile>,
pub icon: Option<&'a mut dyn Tile>,
pub toggle: Option<&'a mut dyn Tile>,
}
Expand description
Return value of Menu::sub_items
Fields§
§label: Option<&'a mut dyn Tile>
Primary label
label2: Option<&'a mut dyn Tile>
Secondary label, often used to show shortcut key
Sub-menu indicator
icon: Option<&'a mut dyn Tile>
Icon
toggle: Option<&'a mut dyn Tile>
Toggle mark
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SubItems<'a>
impl<'a> !RefUnwindSafe for SubItems<'a>
impl<'a> !Send for SubItems<'a>
impl<'a> !Sync for SubItems<'a>
impl<'a> Unpin for SubItems<'a>
impl<'a> !UnwindSafe for SubItems<'a>
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
Source§impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
Source§fn try_cast_approx(self) -> Result<T, Error>
fn try_cast_approx(self) -> Result<T, Error>
Source§fn cast_approx(self) -> T
fn cast_approx(self) -> T
Source§impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
Source§fn cast_trunc(self) -> T
fn cast_trunc(self) -> T
Cast to integer, truncating Read more
Source§fn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Cast to the nearest integer Read more
Source§fn cast_floor(self) -> T
fn cast_floor(self) -> T
Cast the floor to an integer Read more