Skip to main content

read_by_mapping

Function read_by_mapping 

Source
pub fn read_by_mapping(
    bytes: &[u8],
    mapping: &Mapping,
    sheet: Option<usize>,
) -> Result<FlightLog, LogError>
Expand description

Reads a table by a mapping, as generic::read_with does: from a text file, or from the sheet sheet, from 0, of a spreadsheet’s workbook, .xlsx or .xls, or its one sheet.

§Errors

As header_mapping for the sheet; otherwise as generic::read_with.