Function memchr::contains_zero_byte[][src]

fn contains_zero_byte(x: usize) -> bool

Return true if x contains any zero byte.

From Matters Computational, J. Arndt

"The idea is to subtract one from each of the bytes and then look for bytes where the borrow propagated all the way to the most significant bit."