Trait code_gen::WithCondition 
source · pub trait WithCondition {
    // Required method
    fn condition(&self) -> &Box<dyn Expression>;
    // Provided method
    fn write_condition(&self, b: &mut CodeBuffer) { ... }
}Expand description
An element with a condition expression.
Required Methods§
sourcefn condition(&self) -> &Box<dyn Expression>
 
fn condition(&self) -> &Box<dyn Expression>
Gets the condition expression.
Provided Methods§
sourcefn write_condition(&self, b: &mut CodeBuffer)
 
fn write_condition(&self, b: &mut CodeBuffer)
Writes the condition expression.