pub fn add_versioned_file(&mut self, versioned_file: &VersionedFileV3) {
        match self.versioned_files.par_iter().position_any(|x| x.conflict(versioned_file)) {
            Some(position) => { self.versioned_files.splice(position..=position, [versioned_file.clone()].iter().cloned()); },
            None => self.versioned_files.push(versioned_file.clone()),
        }
    }
/// This function adds a new `VersionedFile` to the schema. This checks if the provided `VersionedFile`
/// already exists, and replace it if necessary.
This function adds a new `VersionedFile` to the schema. This checks if the provided `VersionedFile`
already exists, and replace it if necessary.
This function adds a new ` VersionedFile ` to the schema . This checks if the provided ` VersionedFile ` already exists and replace it if necessary .
pub fn add_versioned_file(&mut self, versioned_file: &VersionedFileV3) {
        match self.versioned_files.par_iter().position_any(|x| x.conflict(versioned_file)) {
            Some(position) => { self.versioned_files.splice(position..=position, [versioned_file.clone()].iter().cloned()); },
            None => self.versioned_files.push(versioned_file.clone()),
        }
    }
pub fn add_versioned_file ( & mut self , versioned_file : & VersionedFileV3 ) { match self . versioned_files . par_iter ( ) . position_any ( | x | x . conflict ( versioned_file ) ) { Some ( position ) => { self . versioned_files . splice ( position ..= position , [ versioned_file . clone ( ) ] . iter ( ) . cloned ( ) ) ; } , None => self . versioned_files . push ( versioned_file . clone ( ) ) , } }
This function adds a new `VersionedFile` to the schema.
This function adds a new ` VersionedFile ` to the schema .
&mut self
versioned_file
&VersionedFileV3
&mut self
versioned_file
&VersionedFileV3