Skip to main content

evaluate

Function evaluate 

Source
pub fn evaluate(
    node: &Node,
    now: OffsetDateTime,
) -> Result<HoursResult, HoursError>
Expand description

Evaluate an hours node against an instant (any offset; the evaluation converts it to the flow’s zone). Returns which exit to follow. Assumes a validated config; a parse failure here is a defect surfaced as an error rather than a panic. Called only for hours nodes; any other kind is a programming error surfaced (not hidden as “closed”).