Skip to main content

read_by_fip_header

Function read_by_fip_header 

Source
pub fn read_by_fip_header(
    bytes: &[u8],
    stated: &FipHeader,
    sheet: Option<usize>,
) -> Result<FlightLog, LogError>
Expand description

Reads a Raven FIP export under the header stated for it (raven::read_rows_around): the file as text, or the sheet sheet of a spreadsheet’s workbook, from 0, its cells as the workbook stores them; with no sheet chosen, a workbook’s one sheet.

§Errors

LogError::Choice for a sheet chosen of a file that isn’t a workbook, a sheet the workbook doesn’t hold, or none chosen of a workbook of several; a workbook’s refusal; otherwise as raven::read_rows_around.