trim_ascii_start

Function trim_ascii_start 

Source
pub const fn trim_ascii_start(bytes: &[u8]) -> &[u8] 
Available on crate feature unstable only.
Expand description

Returns a byte slice with leading ASCII whitespace bytes removed.

‘Whitespace’ refers to the definition used by u8::is_ascii_whitespace.

This is copied from the Rust standard library source until the byte_slice_trim_ascii feature is stabilized.