Function replace_all_distinct
Source pub fn replace_all_distinct(s: &str, from: &str, to: &str) -> String
Expand description
Replace all occurrences of a string with another
§Arguments
s - The input string
from - The string to replace
to - The replacement string
§Returns
The string with all occurrences replaced