pub fn write_as_text(&mut self, results: &[FileGroup<Path>]) -> io::Result<()> {
        for g in results {
            let len = style(format!("{:8}", g.len)).yellow().bold();
            let hash = match g.hash {
                None => style("-".repeat(32)).white().dim(),
                Some(hash) => style(format!("{}", hash)).blue().bold().bright(),
            };

            writeln!(
                self.out,
                "{} {}:",
                len.force_styling(self.color),
                hash.force_styling(self.color)
            )?;
            for f in g.files.iter() {
                self.progress.tick();
                writeln!(self.out, "    {}", f.display())?;
            }
        }
        Ok(())
    }
/// Writes report in human-readable text format.
/// A group of identical files starts with a group header at column 0,
/// containing the size and hash of each file in the group.
/// Then file paths are printed in separate, indented lines.
///
/// ```text
/// <size> <hash>:
///     <path 1>
///     <path 2>
///     ...
///     <path N>
/// ```
Writes report in human-readable text format.
A group of identical files starts with a group header at column 0,
containing the size and hash of each file in the group.
Then file paths are printed in separate, indented lines.


Writes report in human - readable text format . A group of identical files starts with a group header at column 0 containing the size and hash of each file in the group . Then file paths are printed in separate indented lines .
pub fn write_as_text(&mut self, results: &[FileGroup<Path>]) -> io::Result<()> {
        for g in results {
            let len = style(format!("{:8}", g.len)).yellow().bold();
            let hash = match g.hash {
                None => style("-".repeat(32)).white().dim(),
                Some(hash) => style(format!("{}", hash)).blue().bold().bright(),
            };
            writeln!(
                self.out,
                "{} {}:",
                len.force_styling(self.color),
                hash.force_styling(self.color)
            )?;
            for f in g.files.iter() {
                self.progress.tick();
                writeln!(self.out, "    {}", f.display())?;
            }
        }
        Ok(())
    }
pub fn write_as_text ( & mut self , results : & [ FileGroup < Path > ] ) -> io :: Result < ( ) > { for g in results { let len = style ( format ! ( " " g len ) ) . yellow ( ) . bold ( ) ; let hash = match g . hash { None => style ( " " . repeat ( 32 ) ) . white ( ) . dim ( ) , Some ( hash ) => style ( format ! ( " " hash ) ) . blue ( ) . bold ( ) . bright ( ) , } ; writeln ! ( self out " " len force_styling ( self color ) hash force_styling ( self color ) ) ? ; for f in g . files . iter ( ) { self . progress . tick ( ) ; writeln ! ( self out " " f display ( ) ) ? ; } } Ok ( ( ) ) }
Writes report in human-readable text format.
Writes report in human - readable text format .
&mut self
results
&[FileGroup<Path>]
&mut self
results
&[FileGroup<Path>]