pub enum MenuItem {
Content(ContentItem),
Sep,
}
Expand description
A menu item can either be a separator or a content item.
Variants
Content(ContentItem)
A content item, i.e. any menu item that’s not a separator.
Sep
A separator bar.
Implementations
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for MenuItem
impl UnwindSafe for MenuItem
Blanket Implementations
Mutably borrows from an owned value. Read more
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more