/// Makes a temporary component ID index file with contents from the given `index`.
Makes a temporary component ID index file with contents from the given `index`.
Makes a temporary component ID index file with contents from the given ` index ` .
pub fn make_index_file(index: component_id_index::Index) -> anyhow::Result<NamedTempFile> {
    let mut tmp_file = NamedTempFile::new()?;
    tmp_file.write_all(
        encode_persistent(&mut fcomponent_internal::ComponentIdIndex::try_from(index)?)?.as_ref(),
    )?;
    Ok(tmp_file)
}
pub fn make_index_file ( index : component_id_index :: Index ) -> anyhow :: Result < NamedTempFile > { let mut tmp_file = NamedTempFile :: new ( ) ? ; tmp_file . write_all ( encode_persistent ( & mut fcomponent_internal :: ComponentIdIndex :: try_from ( index ) ? ) ? . as_ref ( ) , ) ? ; Ok ( tmp_file ) }
Makes a temporary component ID index file with contents from the given `index`.
Makes a temporary component ID index file with contents from the given ` index ` .
index
component_id_index::Index