/// clone_component_namespace_map will create a clone of the given HashMap by calling the Clone
/// function on all the DirectoryProxy's in the map
clone_component_namespace_map will create a clone of the given HashMap by calling the Clone
function on all the DirectoryProxy's in the map
clone_component_namespace_map will create a clone of the given HashMap by calling the Clone function on all the DirectoryProxy ' s in the map
pub fn clone_component_namespace_map(
    ns_map: &HashMap<PathBuf, DirectoryProxy>,
) -> Result<HashMap<PathBuf, DirectoryProxy>, Error> {
    let mut new_map = HashMap::new();
    for (path, dir) in ns_map {
        new_map.insert(path.clone(), io_util::clone_directory(&dir)?);
    }
    Ok(new_map)
}
pub fn clone_component_namespace_map ( ns_map : & HashMap < PathBuf , DirectoryProxy > , ) -> Result < HashMap < PathBuf , DirectoryProxy > , Error > { let mut new_map = HashMap :: new ( ) ; for ( path , dir ) in ns_map { new_map . insert ( path . clone ( ) , io_util :: clone_directory ( & dir ) ? ) ; } Ok ( new_map ) }
clone_component_namespace_map will create a clone of the given HashMap by calling the Clone
function on all the DirectoryProxy's in the map
clone_component_namespace_map will create a clone of the given HashMap by calling the Clone function on all the DirectoryProxy ' s in the map
ns_map
&HashMap<PathBuf, DirectoryProxy>