try_write_map

Function try_write_map 

Source
pub fn try_write_map<P: AsRef<Path>>(
    recs: Vec<IndexMap<String, DmapField>>,
    outfile: P,
) -> Result<(), DmapError>
Expand description

Attempts to convert recs to MapRecord then append to outfile.

ยงErrors

if any of the IndexMaps are unable to be interpreted as a MapRecord, or there is an issue writing to file.