Function pleco::core::u64_to_u8[][src]

pub fn u64_to_u8(b: u64) -> u8

Converts a singular bit of a u64 to it's index in the u64. If there's more than one bit in the u64, this will be done for the least significant bit.

Safety

Undefined behavior if there are 0 bits in the input.