pub trait IsMenuItem<R: Runtime>: IsMenuItemBase {
// Required methods
fn kind(&self) -> MenuItemKind<R>;
fn id(&self) -> &MenuId;
}Available on
desktop only.Expand description
A trait that defines a generic item in a menu, which may be one of MenuItemKind
§Safety
This trait is ONLY meant to be implemented internally by the crate.
Required Methods§
Sourcefn kind(&self) -> MenuItemKind<R>
fn kind(&self) -> MenuItemKind<R>
Returns the kind of this menu item.