Function trim_start_matches

Source
pub const fn trim_start_matches<'a>(this: &'a str, needle: &str) -> &'a str
Expand description

A const subset of str::trim_start_matches which only takes a &str pattern.

ยงExample

use konst::string;

const TRIMMED: &str = string::trim_start_matches("#####huh###", "##");

assert_eq!(TRIMMED, "#huh###");