next_same_bits

Function next_same_bits 

Source
fn next_same_bits(n: i32) -> i32
Expand description

Find the next highest integer with the same number of one bits as the previous integer, for example 1011 => 1110.