Enum kconfig_represent::ItemReference
source · 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
Config(String)
Menu(String)
MenuConfig(String)
Trait Implementations
sourceimpl Clone for ItemReference
impl Clone for ItemReference
sourcefn clone(&self) -> ItemReference
fn clone(&self) -> ItemReference
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ItemReference
impl Debug for ItemReference
sourceimpl Default for ItemReference
impl Default for ItemReference
sourceimpl Display for ItemReference
impl Display for ItemReference
Converts a menu item descriptor directly into the representation of the name of the menu item.
sourceimpl Hash for ItemReference
impl Hash for ItemReference
sourceimpl Ord for ItemReference
impl Ord for ItemReference
sourcefn cmp(&self, other: &ItemReference) -> Ordering
fn cmp(&self, other: &ItemReference) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<ItemReference> for ItemReference
impl PartialEq<ItemReference> for ItemReference
sourcefn eq(&self, other: &ItemReference) -> bool
fn eq(&self, other: &ItemReference) -> bool
sourceimpl PartialOrd<ItemReference> for ItemReference
impl PartialOrd<ItemReference> for ItemReference
sourcefn partial_cmp(&self, other: &ItemReference) -> Option<Ordering>
fn partial_cmp(&self, other: &ItemReference) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for ItemReference
impl StructuralEq for ItemReference
impl StructuralPartialEq for ItemReference
Auto Trait Implementations
impl RefUnwindSafe for ItemReference
impl Send for ItemReference
impl Sync for ItemReference
impl Unpin for ItemReference
impl UnwindSafe for ItemReference
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more