Skip to main content

write_csv

Function write_csv 

Source
pub fn write_csv<W: Write>(
    space: &FuncSpace,
    source_path: &Path,
    writer: W,
) -> Result<()>
Expand description

Write a CSV document for the metric tree rooted at space. The source_path is recorded in the path column of every row; if it is not valid UTF-8 the entire document is skipped (header + zero rows) and a warning is emitted to stderr — there is no useful fallback for a CSV identifier.

§Errors

Returns any io::Error surfaced by the underlying csv::Writer while emitting the header row or any of the per-FuncSpace data rows. The error preserves the cause from the wrapped writer.