try_write_fitacf

Function try_write_fitacf 

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

Attempts to convert recs to FitacfRecord then append to outfile.

ยงErrors

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