pub enum ItemReference {
Config(String),
Menu(String),
MenuConfig(String),
}Expand description
Determines the type, and name of a given menu item. This can either be
- A Configuration Item (Config)
- A Regular Menu (Menu)
- A Menu Configuration Item, which is a hybrid of the former two (MenuConfig) If a Menu is defined, the name of the menu will be the full name, if any of the other two are defined, it will be the configuration name which is typically also used in the .config file.
Variants§
Trait Implementations§
Source§impl Clone for ItemReference
impl Clone for ItemReference
Source§fn clone(&self) -> ItemReference
fn clone(&self) -> ItemReference
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ItemReference
impl Debug for ItemReference
Source§impl Default for ItemReference
impl Default for ItemReference
Source§impl Display for ItemReference
Converts a menu item descriptor directly into the representation
of the name of the menu item.
impl Display for ItemReference
Converts a menu item descriptor directly into the representation of the name of the menu item.
Source§impl Hash for ItemReference
impl Hash for ItemReference
Source§impl Ord for ItemReference
impl Ord for ItemReference
Source§fn cmp(&self, other: &ItemReference) -> Ordering
fn cmp(&self, other: &ItemReference) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ItemReference
impl PartialEq for ItemReference
Source§impl PartialOrd for ItemReference
impl PartialOrd for ItemReference
impl Eq for ItemReference
impl StructuralPartialEq for ItemReference
Auto Trait Implementations§
impl Freeze for ItemReference
impl RefUnwindSafe for ItemReference
impl Send for ItemReference
impl Sync for ItemReference
impl Unpin for ItemReference
impl UnwindSafe for ItemReference
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