[src]

Function std::str::replace

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

Replace all occurrences of one string with another

Arguments

Return value

The original string with all occurances of from replaced with to