pub struct ConditionalNode {
pub condition: String,
pub comparison_op: String,
pub comparison_value: String,
pub then_body: Vec<FlowStep>,
pub else_body: Vec<FlowStep>,
pub conditions: Vec<(String, String, String)>,
pub conjunctor: String,
pub cond: Option<Expr>,
pub loc: Loc,
}Fields§
§condition: String§comparison_op: String§comparison_value: String§then_body: Vec<FlowStep>§else_body: Vec<FlowStep>§conditions: Vec<(String, String, String)>§conjunctor: String§cond: Option<Expr>v2.26.0 — the parsed expression form of the condition. None when
the condition fits the legacy (condition, op, value) + or shape
(then the legacy fields drive evaluation, byte-identical to pre-v2.26.0);
Some only for the richer forms the legacy triple cannot express
(and, not, arithmetic, parentheses, nesting), which the runtime
evaluates via the pure expression evaluator. Zero IR drift for existing
programs.
loc: LocTrait Implementations§
Auto Trait Implementations§
impl Freeze for ConditionalNode
impl RefUnwindSafe for ConditionalNode
impl Send for ConditionalNode
impl Sync for ConditionalNode
impl Unpin for ConditionalNode
impl UnsafeUnpin for ConditionalNode
impl UnwindSafe for ConditionalNode
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