Function remove

Source
pub fn remove(str: &String, remove: &String) -> String
Expand description

Removes all occurrences of the specified substring from the given string.

§Arguments

  • str - The String from which to remove the substring.
  • remove - The String to be removed.

§Returns

A new String with all occurrences of the specified substring removed.