Function bytes_trim_start

Source
pub const fn bytes_trim_start(this: &[u8]) -> &[u8]
Expand description

Removes ascii whitespace from the start of this.

ยงExample

use konst::slice;

const TRIMMED: &[u8] = slice::bytes_trim_start(b"\tfoo bar  ");

assert_eq!(TRIMMED, b"foo bar  ");