1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
// SPDX-License-Identifier: MIT
//
// Copyright 2016-2026, Johann Tuffe.
//! An example of positional deserialization without a header row.
//!
//! Compared with earlier examples, which assume the first row contains column
//! names, this example shows [`RangeDeserializerBuilder::has_headers`] set to
//! `false`. Every row, including the header row, is then yielded as a data
//! item and the caller is responsible for handling it.
//!
//! Using [`calamine::Data`] as the element type of each row preserves the
//! original cell values without any type coercion. This is useful when the
//! schema is not known at compile time, or when you want to inspect the raw
//! cell values before deciding how to process them.
//!
//! The sample Excel file `temperature.xlsx` contains a single sheet named
//! "Sheet1" with the following data:
//!
//! ```text
//! ____________________________________________
//! | || | |
//! | || A | B |
//! |_________||________________|________________|
//! | 1 || label | value |
//! |_________||________________|________________|
//! | 2 || celsius | 22.2222 |
//! |_________||________________|________________|
//! | 3 || fahrenheit | 72 |
//! |_________||________________|________________|
//! |_ _________________________________|
//! \ Sheet1 /
//! ------
//! ```
//!
//! Next: `deserialize_seed` — runtime-driven deserialization using
//! `DeserializeSeed` when column names are only known after reading the header
//! row.
use ;