Function bitwise::word::count_zeros
[−]
[src]
pub fn count_zeros<T: Word>(x: T) -> T
Number of zeros in the binary representation of x
.
Examples
use bitwise::word::*; let n = 0b0100_1100u8; assert_eq!(n.count_zeros(), 5); assert_eq!(count_zeros(n), 5);