fn substitute_path(dir_string: String, substitutions: &IndexMap<String, &str>) -> String {
    let mut substituted_dir = dir_string;
    for substitution_pair in substitutions.iter() {
        substituted_dir = substituted_dir.replace(substitution_pair.0, substitution_pair.1);
    }
    substituted_dir
}
/// Perform a list of string substitutions on the path
///
/// Given a list of (from, to) pairs, this will perform the string
/// substitutions, in order, on the path. Any non-pair of strings is ignored.
Perform a list of string substitutions on the path
Given a list of (from, to) pairs, this will perform the string
substitutions, in order, on the path. Any non-pair of strings is ignored.
Perform a list of string substitutions on the path Given a list of ( from to ) pairs this will perform the string substitutions in order on the path . Any non - pair of strings is ignored .
fn substitute_path(dir_string: String, substitutions: &IndexMap<String, &str>) -> String {
    let mut substituted_dir = dir_string;
    for substitution_pair in substitutions.iter() {
        substituted_dir = substituted_dir.replace(substitution_pair.0, substitution_pair.1);
    }
    substituted_dir
}
fn substitute_path ( dir_string : String , substitutions : & IndexMap < String , & str > ) -> String { let mut substituted_dir = dir_string ; for substitution_pair in substitutions . iter ( ) { substituted_dir = substituted_dir . replace ( substitution_pair . 0 , substitution_pair . 1 ) ; } substituted_dir }
Perform a list of string substitutions on the path
Given a list of (from, to) pairs, this will perform the string
substitutions, in order, on the path.
Perform a list of string substitutions on the path Given a list of ( from to ) pairs this will perform the string substitutions in order on the path .
dir_string
String
substitutions
&IndexMap<String, &str>