pub enum MenuRow<'a> {
Item {
label: &'a str,
marker: Marker,
enabled: bool,
},
Separator,
Label(&'a str),
}Expand description
One row of a Menu.
Variants§
Item
A selectable, activatable row.
Fields
§
marker: MarkerA leading checkbox/choice glyph, or Marker::None for a plain item.
§
enabled: boolWhether this row can be selected/activated. A disabled item is drawn with
Menu::disabled_style and skipped by keyboard navigation and clicks alike, the
same as a Separator/Label.
Separator
A non-selectable divider line.
Label(&'a str)
A non-selectable heading. Drawn like an Item with no marker, but never
selected by navigation or a click, the same as a disabled item.
Implementations§
Trait Implementations§
impl<'a> Copy for MenuRow<'a>
impl<'a> Eq for MenuRow<'a>
Source§impl<'a> PartialEq for MenuRow<'a>
impl<'a> PartialEq for MenuRow<'a>
impl<'a> StructuralPartialEq for MenuRow<'a>
Auto Trait Implementations§
impl<'a> Freeze for MenuRow<'a>
impl<'a> RefUnwindSafe for MenuRow<'a>
impl<'a> Send for MenuRow<'a>
impl<'a> Sync for MenuRow<'a>
impl<'a> Unpin for MenuRow<'a>
impl<'a> UnsafeUnpin for MenuRow<'a>
impl<'a> UnwindSafe for MenuRow<'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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<C> WithAlpha for Cwhere
C: Copy,
impl<C> WithAlpha for Cwhere
C: Copy,
§fn with_alpha_first<A>(self, alpha: A) -> AlphaFirst<A, Self>
fn with_alpha_first<A>(self, alpha: A) -> AlphaFirst<A, Self>
Wraps
self with alpha, storing alpha before the color in memory
(see [AlphaFirst]).§fn with_alpha_last<A>(self, alpha: A) -> AlphaLast<A, Self>
fn with_alpha_last<A>(self, alpha: A) -> AlphaLast<A, Self>
Wraps
self with alpha, storing alpha after the color in memory
(see [AlphaLast]).