pub trait IsMenuItem: IsMenuItemBase {
// Required methods
fn kind(&self) -> MenuItemKind;
fn id(&self) -> &MenuId;
fn into_id(self) -> MenuId;
}
Expand description
A trait that defines a generic item in a menu, which may be one of MenuItemKind
Required Methods§
Sourcefn kind(&self) -> MenuItemKind
fn kind(&self) -> MenuItemKind
Returns a MenuItemKind
associated with this item.