Struct czkawka_core::similar_images::SimilarImages
source · pub struct SimilarImages { /* private fields */ }
Implementations§
source§impl SimilarImages
impl SimilarImages
pub fn new() -> Self
pub fn find_similar_images( &mut self, stop_receiver: Option<&Receiver<()>>, progress_sender: Option<&Sender<ProgressData>> )
pub fn verify_duplicated_items( &self, collected_similar_images: &HashMap<Vec<u8>, Vec<ImagesEntry>> )
source§impl SimilarImages
impl SimilarImages
pub fn set_hash_size(&mut self, hash_size: u8)
pub fn set_exclude_images_with_same_size( &mut self, exclude_images_with_same_size: bool )
pub fn set_hash_alg(&mut self, hash_alg: HashAlg)
pub fn set_image_filter(&mut self, image_filter: FilterType)
pub const fn get_similar_images(&self) -> &Vec<Vec<ImagesEntry>>
pub fn get_similar_images_referenced( &self ) -> &Vec<(ImagesEntry, Vec<ImagesEntry>)>
pub fn get_use_reference(&self) -> bool
pub const fn get_information(&self) -> &Info
pub fn set_similarity(&mut self, similarity: u32)
pub fn set_ignore_hard_links(&mut self, ignore_hard_links: bool)
Trait Implementations§
source§impl CommonData for SimilarImages
impl CommonData for SimilarImages
fn get_cd(&self) -> &CommonToolData
fn get_cd_mut(&mut self) -> &mut CommonToolData
fn set_dry_run(&mut self, dry_run: bool)
fn get_dry_run(&self) -> bool
fn set_use_cache(&mut self, use_cache: bool)
fn get_use_cache(&self) -> bool
fn set_delete_outdated_cache(&mut self, delete_outdated_cache: bool)
fn get_delete_outdated_cache(&self) -> bool
fn get_stopped_search(&self) -> bool
fn set_stopped_search(&mut self, stopped_search: bool)
fn set_maximal_file_size(&mut self, maximal_file_size: u64)
fn get_maximal_file_size(&self) -> u64
fn set_minimal_file_size(&mut self, minimal_file_size: u64)
fn get_minimal_file_size(&self) -> u64
fn set_reference_directory(&mut self, reference_directory: Vec<PathBuf>)
fn set_exclude_other_filesystems(&mut self, exclude_other_filesystems: bool)
fn get_text_messages(&self) -> &Messages
fn get_text_messages_mut(&mut self) -> &mut Messages
fn set_save_also_as_json(&mut self, save_also_as_json: bool)
fn get_save_also_as_json(&self) -> bool
fn set_recursive_search(&mut self, recursive_search: bool)
fn get_recursive_search(&self) -> bool
fn set_use_reference_folders(&mut self, use_reference_folders: bool)
fn get_use_reference_folders(&self) -> bool
fn set_delete_method(&mut self, delete_method: DeleteMethod)
fn get_delete_method(&self) -> DeleteMethod
fn set_included_directory(&mut self, included_directory: Vec<PathBuf>)
fn set_excluded_directory(&mut self, excluded_directory: Vec<PathBuf>)
fn set_allowed_extensions(&mut self, allowed_extensions: String)
fn set_excluded_extensions(&mut self, excluded_extensions: String)
fn set_excluded_items(&mut self, excluded_items: Vec<String>)
fn prepare_items(&mut self)
fn debug_print_common(&self)
source§impl DebugPrint for SimilarImages
impl DebugPrint for SimilarImages
fn debug_print(&self)
source§impl Default for SimilarImages
impl Default for SimilarImages
source§impl PrintResults for SimilarImages
impl PrintResults for SimilarImages
fn write_results<T: Write>(&self, writer: &mut T) -> Result<()>
fn save_results_to_file_as_json( &self, file_name: &str, pretty_print: bool ) -> Result<()>
fn print_results_to_output(&self)
fn print_results_to_file(&self, file_name: &str) -> Result<()>
fn save_results_to_file_as_json_internal<T: Serialize + Debug>( &self, file_name: &str, item_to_serialize: &T, pretty_print: bool ) -> Result<()>
fn save_results_to_file_as_json_pretty<T: Serialize + Debug>( &self, file_name: &str, item_to_serialize: &T ) -> Result<()>
fn save_results_to_file_as_json_compact<T: Serialize + Debug>( &self, file_name: &str, item_to_serialize: &T ) -> Result<()>
fn save_all_in_one(&self, file_name: &str) -> Result<()>
Auto Trait Implementations§
impl RefUnwindSafe for SimilarImages
impl Send for SimilarImages
impl Sync for SimilarImages
impl Unpin for SimilarImages
impl UnwindSafe for SimilarImages
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.