pub const fn trim_end(this: &str) -> &str
Expand description
A const subset of str::trim_end
which only removes ascii whitespace.
§Example
use konst::string;
const TRIMMED: &str = string::trim_end("\rfoo bar ");
assert_eq!(TRIMMED, "\rfoo bar");