Collect RowKinds from ceiling tile rows, keyed by coord.
(tile: &SparseTile)
| 423 | |
| 424 | /// Collect RowKinds from ceiling tile rows, keyed by coord. |
| 425 | fn ceiling_kinds(tile: &SparseTile) -> HashMap<i64, RowKind> { |
| 426 | decode_sparse_rows(tile) |
| 427 | .unwrap() |
| 428 | .into_iter() |
| 429 | .map(|r| { |
| 430 | let x = match r.coord[0] { |
| 431 | CoordValue::Int64(x) => x, |
| 432 | _ => panic!("unexpected coord type"), |
| 433 | }; |
| 434 | (x, r.kind) |
| 435 | }) |
| 436 | .collect() |
| 437 | } |
| 438 | |
| 439 | // ── Test 1 ────────────────────────────────────────────────────────────── |
| 440 |