Struct kconfig_represent::Item
source · pub struct Item { /* private fields */ }
Implementations
sourceimpl Item
impl Item
sourcepub fn name<'a>(&'a self) -> &'a str
pub fn name<'a>(&'a self) -> &'a str
Returns the name of the item, typically, this is the same as the name of the associated ItemReference
sourcepub fn itemref(&self) -> ItemReference
pub fn itemref(&self) -> ItemReference
Returns the item reference of the item, which can be used to traverse the configuration registry, or perform dependency lookups in other items
pub fn config_items<'a>(&'a self) -> &'a HashMap<ConfigType, ConfigItem>
pub fn config_items_mut<'a>(
&'a mut self
) -> &'a mut HashMap<ConfigType, ConfigItem>
pub fn conditions(&self) -> HashSet<Dependency>
sourcepub fn item_dependencies(&self) -> HashSet<ItemDependency>
pub fn item_dependencies(&self) -> HashSet<ItemDependency>
Returns the reverse dependencies, without evaluation
sourcepub fn selected(&self) -> HashMap<String, Option<ResolvedExpr>>
pub fn selected(&self) -> HashMap<String, Option<ResolvedExpr>>
Returns the items selected by me
sourcepub fn implied<'a>(&self) -> HashMap<String, Option<ResolvedExpr>>
pub fn implied<'a>(&self) -> HashMap<String, Option<ResolvedExpr>>
Returns the items implied by me
sourcepub fn selects_me(&self) -> HashMap<String, Option<ResolvedExpr>>
pub fn selects_me(&self) -> HashMap<String, Option<ResolvedExpr>>
Returns the items selecting me
pub fn raw_elt<'a>(&'a self) -> &'a Option<Element>
pub fn parent<'a>(&'a self) -> &'a Option<String>
pub fn info(&self) -> Info
Trait Implementations
impl Eq for Item
Auto Trait Implementations
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnwindSafe for Item
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