Function alloc::str::convert_while_ascii

source ·
fn convert_while_ascii(b: &[u8], convert: fn(_: &u8) -> u8) -> Vec<u8>
Expand description

Converts the bytes while the bytes are still ascii. For better average performance, this is happens in chunks of 2*size_of::<usize>(). Returns a vec with the converted bytes.