Function replace

Source
pub fn replace(contents: Cow<'_, str>, from: &String, to: &String) -> String
Expand description

Replaces the from_string to to_string