Skip to main content

parse_csv_array

Function parse_csv_array 

Source
pub fn parse_csv_array(text: &str) -> Result<OmmArray, OmmError>
Expand description

Parse all valid GP CSV records into Omm values.

Header names are the OMM keyword names used by GP CSV and JSON. Each record is mapped onto the same (key, value) field set used by KVN, XML, and JSON, so all encodings share one Omm intermediate representation. A bad data row increments OmmArray::skipped rather than aborting the whole file.