pub const fn trim_matches<'a>(this: &'a str, needle: &str) -> &'a strExpand description
A const subset of str::trim_matches which only takes a &str pattern.
ยงExample
use konst::string;
const TRIMMED: &str = string::trim_matches("<>baz qux<><><>", "<>");
assert_eq!(TRIMMED, "baz qux");