(data_type: &DataType)
| 268 | } |
| 269 | |
| 270 | fn struct_fields(data_type: &DataType) -> &Fields { |
| 271 | match &data_type { |
| 272 | DataType::Struct(f) => f, |
| 273 | _ => unreachable!(), |
| 274 | } |
| 275 | } |
| 276 | |
| 277 | fn build_field_index(fields: &Fields) -> Option<HashMap<String, usize>> { |
| 278 | // Heuristic threshold: for small field counts, linear scan avoids HashMap overhead. |