[][src]Function voca_rs::manipulate::trim_right

pub fn trim_right(subject: &str, whitespace: &str) -> String

Removes whitespaces from the right side of the subject.

Arguments

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"