/// Writes the report in the format given by `format` parameter.
Writes the report in the format given by `format` parameter.
Writes the report in the format given by ` format ` parameter .
pub fn write<I, G, P>(
        &mut self,
        format: OutputFormat,
        header: &ReportHeader,
        groups: I,
    ) -> io::Result<()>
    where
        I: IntoIterator<Item = G>,
        G: Borrow<FileGroup<P>> + Serialize,
        P: Display + Serialize,
    {
        match format {
            OutputFormat::Default => self.write_as_text(header, groups),
            OutputFormat::Fdupes => self.write_as_fdupes(header, groups),
            OutputFormat::Csv => self.write_as_csv(header, groups),
            OutputFormat::Json => self.write_as_json(header, groups),
        }
    }
pub fn write < I , G , P > ( & mut self , format : OutputFormat , header : & ReportHeader , groups : I , ) -> io :: Result < ( ) > where I : IntoIterator < Item = G > , G : Borrow < FileGroup < P > > + Serialize , P : Display + Serialize , { match format { OutputFormat :: Default => self . write_as_text ( header , groups ) , OutputFormat :: Fdupes => self . write_as_fdupes ( header , groups ) , OutputFormat :: Csv => self . write_as_csv ( header , groups ) , OutputFormat :: Json => self . write_as_json ( header , groups ) , } }
Writes the report in the format given by `format` parameter.
Writes the report in the format given by ` format ` parameter .
&mut self
format
OutputFormat
header
&ReportHeader
groups
I