fn print_results(&self) {
        let start_time: SystemTime = SystemTime::now();
        let mut number_of_files: u64 = 0;
        let mut number_of_groups: u64 = 0;

        match self.check_method {
            CheckingMethod::Name => {
                for i in &self.files_with_identical_names {
                    number_of_files += i.1.len() as u64;
                    number_of_groups += 1;
                }
                println!("Found {} files in {} groups with same name(may have different content)", number_of_files, number_of_groups,);
                for (name, vector) in &self.files_with_identical_names {
                    println!("Name - {} - {} files ", name, vector.len());
                    for j in vector {
                        println!("{}", j.path.display());
                    }
                    println!();
                }
            }
            CheckingMethod::Hash => {
                for (_size, vector) in self.files_with_identical_hashes.iter() {
                    for j in vector {
                        number_of_files += j.len() as u64;
                        number_of_groups += 1;
                    }
                }
                println!(
                    "Found {} duplicated files in {} groups with same content which took {}:",
                    number_of_files,
                    number_of_groups,
                    self.information.lost_space_by_size.file_size(options::BINARY).unwrap()
                );
                for (size, vector) in self.files_with_identical_hashes.iter().rev() {
                    for j in vector {
                        println!("Size - {} ({}) - {} files ", size.file_size(options::BINARY).unwrap(), size, j.len());
                        for k in j {
                            println!("{}", k.path.display());
                        }
                        println!("----");
                    }
                    println!();
                }
            }
            CheckingMethod::Size => {
                for i in &self.files_with_identical_size {
                    number_of_files += i.1.len() as u64;
                    number_of_groups += 1;
                }
                println!(
                    "Found {} files in {} groups with same size(may have different content) which took {}:",
                    number_of_files,
                    number_of_groups,
                    self.information.lost_space_by_size.file_size(options::BINARY).unwrap()
                );
                for (size, vector) in &self.files_with_identical_size {
                    println!("Size - {} ({}) - {} files ", size.file_size(options::BINARY).unwrap(), size, vector.len());
                    for j in vector {
                        println!("{}", j.path.display());
                    }
                    println!();
                }
            }
            CheckingMethod::None => {
                panic!("Checking Method shouldn't be ever set to None");
            }
        }
        Common::print_time(start_time, SystemTime::now(), "print_entries".to_string());
    }
/// Print information's about duplicated entries
/// Only needed for CLI
Print information's about duplicated entries
Only needed for CLI
Print information ' s about duplicated entries Only needed for CLI
fn print_results(&self) {
        let start_time: SystemTime = SystemTime::now();
        let mut number_of_files: u64 = 0;
        let mut number_of_groups: u64 = 0;
        match self.check_method {
            CheckingMethod::Name => {
                for i in &self.files_with_identical_names {
                    number_of_files += i.1.len() as u64;
                    number_of_groups += 1;
                }
                println!("Found {} files in {} groups with same name(may have different content)", number_of_files, number_of_groups,);
                for (name, vector) in &self.files_with_identical_names {
                    println!("Name - {} - {} files ", name, vector.len());
                    for j in vector {
                        println!("{}", j.path.display());
                    }
                    println!();
                }
            }
            CheckingMethod::Hash => {
                for (_size, vector) in self.files_with_identical_hashes.iter() {
                    for j in vector {
                        number_of_files += j.len() as u64;
                        number_of_groups += 1;
                    }
                }
                println!(
                    "Found {} duplicated files in {} groups with same content which took {}:",
                    number_of_files,
                    number_of_groups,
                    self.information.lost_space_by_size.file_size(options::BINARY).unwrap()
                );
                for (size, vector) in self.files_with_identical_hashes.iter().rev() {
                    for j in vector {
                        println!("Size - {} ({}) - {} files ", size.file_size(options::BINARY).unwrap(), size, j.len());
                        for k in j {
                            println!("{}", k.path.display());
                        }
                        println!("----");
                    }
                    println!();
                }
            }
            CheckingMethod::Size => {
                for i in &self.files_with_identical_size {
                    number_of_files += i.1.len() as u64;
                    number_of_groups += 1;
                }
                println!(
                    "Found {} files in {} groups with same size(may have different content) which took {}:",
                    number_of_files,
                    number_of_groups,
                    self.information.lost_space_by_size.file_size(options::BINARY).unwrap()
                );
                for (size, vector) in &self.files_with_identical_size {
                    println!("Size - {} ({}) - {} files ", size.file_size(options::BINARY).unwrap(), size, vector.len());
                    for j in vector {
                        println!("{}", j.path.display());
                    }
                    println!();
                }
            }
            CheckingMethod::None => {
                panic!("Checking Method shouldn't be ever set to None");
            }
        }
        Common::print_time(start_time, SystemTime::now(), "print_entries".to_string());
    }
fn print_results ( & self ) { let start_time : SystemTime = SystemTime :: now ( ) ; let mut number_of_files : u64 = 0 ; let mut number_of_groups : u64 = 0 ; match self . check_method { CheckingMethod :: Name => { for i in & self . files_with_identical_names { number_of_files += i . 1 . len ( ) as u64 ; number_of_groups += 1 ; } println ! ( " " number_of_files number_of_groups ) ; for ( name , vector ) in & self . files_with_identical_names { println ! ( " " name vector len ( ) ) ; for j in vector { println ! ( " " j path display ( ) ) ; } println ! ( ) ; } } CheckingMethod :: Hash => { for ( _size , vector ) in self . files_with_identical_hashes . iter ( ) { for j in vector { number_of_files += j . len ( ) as u64 ; number_of_groups += 1 ; } } println ! ( " " number_of_files number_of_groups self information lost_space_by_size file_size ( options BINARY ) unwrap ( ) ) ; for ( size , vector ) in self . files_with_identical_hashes . iter ( ) . rev ( ) { for j in vector { println ! ( " " size file_size ( options BINARY ) unwrap ( ) size j len ( ) ) ; for k in j { println ! ( " " k path display ( ) ) ; } println ! ( " " ) ; } println ! ( ) ; } } CheckingMethod :: Size => { for i in & self . files_with_identical_size { number_of_files += i . 1 . len ( ) as u64 ; number_of_groups += 1 ; } println ! ( " " number_of_files number_of_groups self information lost_space_by_size file_size ( options BINARY ) unwrap ( ) ) ; for ( size , vector ) in & self . files_with_identical_size { println ! ( " " size file_size ( options BINARY ) unwrap ( ) size vector len ( ) ) ; for j in vector { println ! ( " " j path display ( ) ) ; } println ! ( ) ; } } CheckingMethod :: None => { panic ! ( " " ) ; } } Common :: print_time ( start_time , SystemTime :: now ( ) , " " . to_string ( ) ) ; }
Print information's about duplicated entries
Only needed for CLI
Print information ' s about duplicated entries Only needed for CLI
&self
&self