Function write_field_csvs

Source
pub fn write_field_csvs(
    results: &[AnalysisResults],
    output_dir: &Path,
    file_paths: &[PathBuf],
) -> Result<()>
Expand description

Writes individual CSV files for each field, containing statistics across all input files.

Creates one CSV file per field. Each row in a field’s CSV represents the field’s metrics from one of the input files.

§Arguments

  • results - A slice of AnalysisResults, one for each analyzed file.
  • output_dir - The directory where the CSV files will be written.
  • file_paths - A slice of PathBufs representing the original file paths for each result.

§Returns

  • std::io::Result<()> - Ok if successful, otherwise an error.