pub fn find_changed<'a, I: Iterator<Item = &'a FileId>>(
        &mut self,
        file_ids: I,
        interns: &Interns,
    ) -> io::Result<HashMap<FileId, ContentHash>> {
        let mut changed = HashMap::default();

        // If any changed, add them to the map.
        for &file_id in file_ids {
            if let Some(hash) = self.content_changed(file_id, interns)? {
                changed.insert(file_id, hash);
            }
        }

        Ok(changed)
    }
/// Iterate through each of the given FileId entries and call
/// self.content_changed on them, then return a map of all the files
/// that changed.
Iterate through each of the given FileId entries and call
self.content_changed on them, then return a map of all the files
that changed.
Iterate through each of the given FileId entries and call self . content_changed on them then return a map of all the files that changed .
pub fn find_changed<'a, I: Iterator<Item = &'a FileId>>(
        &mut self,
        file_ids: I,
        interns: &Interns,
    ) -> io::Result<HashMap<FileId, ContentHash>> {
        let mut changed = HashMap::default();
        // If any changed, add them to the map.
        for &file_id in file_ids {
            if let Some(hash) = self.content_changed(file_id, interns)? {
                changed.insert(file_id, hash);
            }
        }
        Ok(changed)
    }
pub fn find_changed < ' a , I : Iterator < Item = & ' a FileId > > ( & mut self , file_ids : I , interns : & Interns , ) -> io :: Result < HashMap < FileId , ContentHash > > { let mut changed = HashMap :: default ( ) ; // If any changed, add them to the map. for & file_id in file_ids { if let Some ( hash ) = self . content_changed ( file_id , interns ) ? { changed . insert ( file_id , hash ) ; } } Ok ( changed ) }
Iterate through each of the given FileId entries and call
self.content_changed on them, then return a map of all the files
that changed.
Iterate through each of the given FileId entries and call self . content_changed on them then return a map of all the files that changed .
&mut self
file_ids
I
interns
&Interns