Returns whether the given expr refers to columns of only the `index`th input.
(&self, expr: &impl Columns, index: usize)
| 247 | |
| 248 | /// Returns whether the given expr refers to columns of only the `index`th input. |
| 249 | pub fn is_localized(&self, expr: &impl Columns, index: usize) -> bool { |
| 250 | if let Some(single_input) = self.single_input(expr) { |
| 251 | if single_input == index { |
| 252 | return true; |
| 253 | } |
| 254 | } |
| 255 | false |
| 256 | } |
| 257 | |
| 258 | /// Takes an expression in the global context and looks in `equivalences` |
| 259 | /// for an equivalent expression (also expressed in the global context) that |
no test coverage detected