[][src]Function morton_encoding::morton_encode_biguint

pub fn morton_encode_biguint<Coor, Coors>(coors: Coors) -> BigUint where
    Coor: ToPrimitive,
    BigUint: From<Coor>,
    Coors: IntoIterator<Item = Coor>,
    <Coors as IntoIterator>::IntoIter: ExactSizeIterator

Receives an iterator of Coor values and encodes them all in a BigUint.

Unavailable if compiled with no_std.

Examples

let input = vec!(0u8, 255u8);
let result = morton_encode_biguint(input);
assert_eq!(result, tobuint(0x5555u16));