expr_refers

Function expr_refers 

Source
fn expr_refers(
    referring_expr: &Arc<dyn PhysicalExpr>,
    referred_expr: &Arc<dyn PhysicalExpr>,
) -> bool
Expand description

This function examines whether a referring expression directly refers to a given referred expression or if any of its children in the expression tree refer to the specified expression.

§Parameters

  • referring_expr: A reference to the referring expression (Arc<dyn PhysicalExpr>).
  • referred_expr: A reference to the referred expression (Arc<dyn PhysicalExpr>)

§Returns

A boolean value indicating whether referring_expr refers (needs it to evaluate its result) referred_expr or not.