std::core::string

treplace

fn String String.treplace(self, String needle, String new_str)
Replace all instances of one substring with a different string, allocating the new string on the temp allocator.

Parameters