Function collections::str::replace[src]

pub fn replace(s: &str, from: &str, to: &str) -> String

Replace all occurrences of one string with another

Arguments

Return value

The original string with all occurrences of from replaced with to