Function voca_rs::manipulate::trim_right
source · Expand description
Removes whitespaces from the right side of the subject
.
Arguments
subject
- The string to trim.whitespace
- The whitespace characters to trim. List all characters that you want to be stripped.
Example
use voca_rs::*;
manipulate::trim_right(" Mother nature ", "");
// => " Mother nature"
manipulate::trim_right("-~-Earth~-~", "-~");
// => "-~-Earth"
/// use voca_rs::Voca;
" Mother nature "._trim_right("");
// => " Mother nature"