Enum kconfig_parser::ast::parser::Element
source · pub enum Element {
Config(ConfigElement),
MenuConfig(MenuConfigElement),
Menu(Menu),
}
Expand description
An Ast contains a list of elements, which might themselves contain other parts of the Ast, etc.
Variants
Config(ConfigElement)
MenuConfig(MenuConfigElement)
Menu(Menu)
Implementations
sourceimpl Element
impl Element
pub fn len_conditional_blocks(&self) -> usize
pub fn conditional_blocks(&self) -> Vec<Condition>
pub fn dependencies(&self) -> HashSet<Dependency>
pub fn name(&self) -> String
pub fn prompt(&self) -> Option<String>
pub fn elt_type(&self) -> ElementType
pub fn types(&self) -> Option<&HashMap<ConfigType, Option<Dependency>>>
pub fn defaults(&self) -> Option<&HashMap<Expr, Option<Dependency>>>
pub fn reverse_dependencies(
&self
) -> Option<&HashMap<String, Option<Dependency>>>
pub fn weak_dependencies(&self) -> Option<&HashMap<String, Option<Dependency>>>
pub fn range(&self) -> Option<Range>
pub fn help(&self) -> VecDeque<String>
pub fn visible_if(&self) -> HashSet<Dependency>
pub fn sub_element(&self, s: &str) -> Option<&Element>
pub fn sub_elements(&self) -> Vec<(String, Element)>
pub fn len(&self) -> usize
Trait Implementations
impl Eq for Element
impl StructuralEq for Element
impl StructuralPartialEq for Element
Auto Trait Implementations
impl RefUnwindSafe for Element
impl Send for Element
impl Sync for Element
impl Unpin for Element
impl UnwindSafe for Element
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