pub trait MenuItem {
    fn descriptor(&self) -> MenuItemDescriptor;
    fn enabled(&self) -> bool;
    fn enable(&mut self, flag: bool);
    fn info(&self) -> Vec<String>;
}
Expand description

Represents a named item such as a menu or a config item

Required Methods

Returns the name of the named item

Returns whether or not the item is enabled

Sets the item to be enabled or not

Returns the item’s help text (if present). If not present, should return an empty string instead.

Implementors

Implements the Named type generically for all generic configuration item types.