Function konst::string::trim_start_matches
source · [−]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###");