pub const fn trim_start_matches<'a>(this: &'a str, needle: &str) -> &'a str
Available on crate feature rust_1_55 only.
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###");