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§
Source§impl Condition
impl Condition
pub fn new(dependency: &Dependency) -> Self
pub fn dependency(&self) -> Dependency
pub fn elements(&self) -> Vec<(String, Element)>
Trait Implementations§
Source§impl ConditionContainer for Condition
impl ConditionContainer for Condition
fn len_conditional_blocks(&self) -> usize
fn conditional_blocks(&self) -> Vec<Condition>
impl Eq for Condition
impl StructuralPartialEq for Condition
Auto Trait Implementations§
impl Freeze for Condition
impl RefUnwindSafe for Condition
impl Send for Condition
impl Sync for Condition
impl Unpin for Condition
impl UnwindSafe for Condition
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