Skip to main content

eval_pred

Function eval_pred 

Source
pub fn eval_pred<C: PredContext>(ir: &SemIr, expr: ExprId, ctx: &mut C) -> bool
Expand description

Evaluates a predicate expression to its truthiness.

This is the runtime entry point for semantic predicate transitions; it is side-effect-free except for PExpr::Hook nodes, whose implementations own their replay-safety (they may run repeatedly on speculative paths).