pub fn trim_end_byte(s: &[u8], byte: u8) -> &[u8] ⓘ
Strips all trailing occurrences of byte from s.
byte
s
SIMD-accelerated on x86_64 (SSE2, 16-byte chunks) and aarch64 (NEON, 16-byte chunks); scalar elsewhere.