Function konst::string::trim_start

source ·
pub const fn trim_start(this: &str) -> &str
Expand description

A const subset of str::trim_start which only removes ascii whitespace.

§Example

use konst::string;

const TRIMMED: &str = string::trim_start("\rfoo bar  ");

assert_eq!(TRIMMED, "foo bar  ");