Skip to main content

trim_end_byte

Function trim_end_byte 

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

Strips all trailing occurrences of byte from s.

SIMD-accelerated on x86_64 (SSE2, 16-byte chunks) and aarch64 (NEON, 16-byte chunks); scalar elsewhere.