Struct rtlola_hir::hir::EvalDef
source · pub struct EvalDef<'a> {
pub condition: Option<&'a Expression>,
pub expression: &'a Expression,
pub annotated_pacing: Option<&'a AnnotatedPacingType>,
}
Expand description
The Hir Eval definition is composed of three expressions and the annotated pacing. The first one refers to the evaluation condition, while the second one represents the evaluation expression, defining the value of the stream.
Fields§
§condition: Option<&'a Expression>
The evaluation condition has to evaluated to true in order for the stream expression to be evaluated.
expression: &'a Expression
The stream expression defines the computed value of the stream.
annotated_pacing: Option<&'a AnnotatedPacingType>
The annotated pacing of the stream evaluation, describing when the condition and expression should be evaluated in a temporal manner.
Implementations§
source§impl<'a> EvalDef<'a>
impl<'a> EvalDef<'a>
sourcepub fn new(
condition: Option<&'a Expression>,
expr: &'a Expression,
annotated_pacing: Option<&'a AnnotatedPacingType>
) -> Self
pub fn new(
condition: Option<&'a Expression>,
expr: &'a Expression,
annotated_pacing: Option<&'a AnnotatedPacingType>
) -> Self
Constructs a new EvalDef