pub fn delete_unencountered_external_ids(&mut self) {
        self.mappings = std::mem::take(&mut self.mappings)
            .into_iter()
            .filter(|(_path, docids_and_filehash)| {
                if !docids_and_filehash.2 {
                    for doc_id in docids_and_filehash.0.iter() {
                        bitmap::set(&mut self.invalidation_vector, *doc_id as usize);
                        self.num_deleted_docs += 1;
                    }
                }

                docids_and_filehash.2
            })
            .collect();
    }
// Delete file paths that were not encountered at all (assume they were deleted)
Delete file paths that were not encountered at all (assume they were deleted)
Delete file paths that were not encountered at all ( assume they were deleted )
pub fn delete_unencountered_external_ids(&mut self) {
        self.mappings = std::mem::take(&mut self.mappings)
            .into_iter()
            .filter(|(_path, docids_and_filehash)| {
                if !docids_and_filehash.2 {
                    for doc_id in docids_and_filehash.0.iter() {
                        bitmap::set(&mut self.invalidation_vector, *doc_id as usize);
                        self.num_deleted_docs += 1;
                    }
                }
                docids_and_filehash.2
            })
            .collect();
    }
pub fn delete_unencountered_external_ids ( & mut self ) { self . mappings = std :: mem :: take ( & mut self . mappings ) . into_iter ( ) . filter ( | ( _path , docids_and_filehash ) | { if ! docids_and_filehash . 2 { for doc_id in docids_and_filehash . 0 . iter ( ) { bitmap :: set ( & mut self . invalidation_vector , * doc_id as usize ) ; self . num_deleted_docs += 1 ; } } docids_and_filehash . 2 } ) . collect ( ) ; }
Delete file paths that were not encountered at all (assume they were deleted)
Delete file paths that were not encountered at all ( assume they were deleted )
&mut self
&mut self