(left: &ParseValue, right: &ParseValue)
| 413 | } |
| 414 | |
| 415 | fn parse_values_equal(left: &ParseValue, right: &ParseValue) -> bool { |
| 416 | match (left, right) { |
| 417 | (ParseValue::Str(a), ParseValue::Str(b)) => a == b, |
| 418 | (ParseValue::Int(a), ParseValue::Int(b)) => a == b, |
| 419 | (ParseValue::Float(a), ParseValue::Float(b)) => a == b, |
| 420 | (ParseValue::Decimal(a), ParseValue::Decimal(b)) => a == b, |
| 421 | (ParseValue::Percent(a), ParseValue::Percent(b)) => a == b, |
| 422 | (ParseValue::Map(a), ParseValue::Map(b)) => a == b, |
| 423 | ( |
| 424 | ParseValue::DateTime { raw: a, format: af }, |
| 425 | ParseValue::DateTime { raw: b, format: bf }, |
| 426 | ) => a == b && af == bf, |
| 427 | _ => false, |
| 428 | } |
| 429 | } |
| 430 | |
| 431 | fn expand_named_fields(named_fields: HashMap<String, ParseValue>) -> HashMap<String, ParseValue> { |
| 432 | let mut result = HashMap::new(); |
no outgoing calls
no test coverage detected