Skip to main content

header_mapping

Function header_mapping 

Source
pub fn header_mapping(
    bytes: &[u8],
    sheet: Option<usize>,
) -> Result<(Mapping, Vec<String>), LogError>
Expand description

What a table’s header states, as a mapping to edit, with a note on each column it leaves kept as written, saying why (generic::header_reading). sheet names a spreadsheet’s workbook’s sheet, .xlsx or .xls, from 0; None for a text file, or a workbook of one sheet.

§Errors

LogError::NotThisFormat for a table whose header doesn’t name a clock with a unit of time; LogError::Mapping for a workbook of several sheets with none named, or a sheet it doesn’t have, or a sheet named for a file that isn’t a workbook.