std::core::string

trim_right

fn String String.trim_right(self, String to_trim = " \n\t\r\f\v")
Remove characters from the end of a string.

Parameters