Struct kconfig_parser::ast::parser::Condition
source · pub struct Condition { /* private fields */ }
Expand description
Describes a condition, typically a statement part of another expression, which is introduced by appending “if” to the statement. This would apply a particular statement in a certain condition.
Implementations
sourceimpl Condition
impl Condition
pub fn new(dependency: &Dependency) -> Self
pub fn dependency(&self) -> Dependency
pub fn elements(&self) -> Vec<(String, Element)>
Trait Implementations
sourceimpl ConditionContainer for Condition
impl ConditionContainer for Condition
fn len_conditional_blocks(&self) -> usize
fn conditional_blocks(&self) -> Vec<Condition>
impl Eq for Condition
impl StructuralEq for Condition
impl StructuralPartialEq for Condition
Auto Trait Implementations
impl RefUnwindSafe for Condition
impl Send for Condition
impl Sync for Condition
impl Unpin for Condition
impl UnwindSafe for Condition
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