tafia / calamine

A pure Rust Excel/OpenDocument SpreadSheets file reader: rust on metal sheets
MIT License
1.61k stars 155 forks source link

Please add `Range::headers() -> Vec<String>` #327

Closed lucatrv closed 4 months ago

lucatrv commented 1 year ago

It is often required to get the first row values of a range deserialized to strings (which are the range headers), so IMHO it would be useful to add a specific helping method headers to Range, which would be equivalent to calling rows().next() and then converting to String. The csv crate has a similar method, see tutoral and documentation. To convert each DataType value to String, the headers method should call ToString::to_string.