Module arbitrary_bit_size

Module arbitrary_bit_size 

Source
Expand description

The most general, but least performant, ways to perform Morton encoding and decoding. The functions contained herein work correctly, but the author makes absolutely no guarantees about how performant they are.

Functions§

bloat_custom_biguint
“Bloats” a given number to an arbitrarily large BigUint.
morton_decode_biguint
Receives a BigUint value and returns an iterator of BigUint values that were decoded from it.
morton_encode_biguint
Receives an iterator of Coor values and encodes them all in a BigUint.
shrink_custom_biguint
“Shrinks” a given number from an arbitrarily large BigUint.
tobuint
A convenience function for converting primitive values to BigUints. Will fail to compile if called with a literal that’s not explicitly declared as unsigned.