Skip to main content

parse_into

Function parse_into 

Source
pub fn parse_into(
    copybook: &Copybook,
    csv_text: &[u8],
    dialect: &Dialect,
) -> Result<Vec<Vec<u8>>, Vec<Finding>>
Expand description

KOBOLD.CSV.PARSE.1 – reconstruct record bytes from a Compact CSV csv_text against copybook.

Returns Ok(records) (one Vec<u8> of copybook.record_length() bytes per data row), or Err(findings) listing every problem across the whole input. Fail-closed: on ANY finding no bytes are returned for the offending row’s class of error – the result is all-or-nothing.