This function is similar to the `contains` method of `Vec`. It finds whether `expr` is among `physical_exprs`.
(
physical_exprs: &[Arc<dyn PhysicalExpr>],
expr: &Arc<dyn PhysicalExpr>,
)
| 53 | /// This function is similar to the `contains` method of `Vec`. It finds |
| 54 | /// whether `expr` is among `physical_exprs`. |
| 55 | pub fn physical_exprs_contains( |
| 56 | physical_exprs: &[Arc<dyn PhysicalExpr>], |
| 57 | expr: &Arc<dyn PhysicalExpr>, |
| 58 | ) -> bool { |
| 59 | physical_exprs |
| 60 | .iter() |
| 61 | .any(|physical_expr| physical_expr.eq(expr)) |
| 62 | } |
| 63 | |
| 64 | /// Checks whether the given physical expression slices are equal. |
| 65 | pub fn physical_exprs_equal( |
no test coverage detected
searching dependent graphs…