Skip to main content

gray_code_sequence

Function gray_code_sequence 

Source
pub fn gray_code_sequence(bits: u32) -> Vec<u64>
Expand description

Returns the full bits-bit Gray code sequence of length 2^bits (bits <= 32).

ยงPanics

Panics if bits > 32.