Skip to main content

replace_pairs

Function replace_pairs 

Source
pub fn replace_pairs(input: &str, constant: &[(&str, &str)]) -> String
Expand description

Replaces constants represented as a tuple array. Each first element of the tuple replaces each second element with the help of the regex crate.