pub const fn trim(this: &str) -> &str
A const subset of str::trim which only removes ascii whitespace.
str::trim
use konst::string; const TRIMMED: &str = string::trim("\nhello world "); assert_eq!(TRIMMED, "hello world");