pub fn u64_to_8slice(input: u64) -> [u8; 8]Expand description
Convert an unsigned 64 bit number so a slice of 8 bytes in big-endian format (most significant bit first).
ยงExamples
use crate::permutation_iterator::u64_to_8slice;
let output = u64_to_8slice(42);
assert_eq!(output, [0, 0, 0, 0, 0, 0, 0, 0x2A]);