(&self, o: &Self)
| 181 | |
| 182 | impl PartialEq for ScalarFunctionExpr { |
| 183 | fn eq(&self, o: &Self) -> bool { |
| 184 | if std::ptr::eq(self, o) { |
| 185 | // The equality implementation is somewhat expensive, so let's short-circuit when possible. |
| 186 | return true; |
| 187 | } |
| 188 | let Self { |
| 189 | fun, |
| 190 | name, |
| 191 | args, |
| 192 | return_field, |
| 193 | config_options, |
| 194 | } = self; |
| 195 | fun.eq(&o.fun) |
| 196 | && name.eq(&o.name) |
| 197 | && args.eq(&o.args) |
| 198 | && return_field.eq(&o.return_field) |
| 199 | && (Arc::ptr_eq(config_options, &o.config_options) |
| 200 | || sorted_config_entries(config_options) |
| 201 | == sorted_config_entries(&o.config_options)) |
| 202 | } |
| 203 | } |
| 204 | impl Eq for ScalarFunctionExpr {} |
| 205 | impl Hash for ScalarFunctionExpr { |
nothing calls this directly
no test coverage detected