Skip to main content

trim_start_byte

Function trim_start_byte 

Source
pub fn trim_start_byte(s: &[u8], byte: u8) -> &[u8] 
Expand description

Strips all leading occurrences of byte from s.

SIMD-accelerated on x86_64 (SSE2, 16-byte chunks) and aarch64 (NEON, 16-byte chunks); scalar elsewhere. SSE2 and NEON are baseline on their respective targets, so no runtime feature detection is required.