[][src]Module treeid::bits

Constants

U8_MASK
U8_WIDTH

Functions

kth_bit

Returns the k'th bit of x as a bool.

kth_bit_iter

Returns the k'th bit of the next element in it as a bool, without consuming the element.

rotate_add

Adds y to x, rotating back to 0 if the result exceeds 8.

rotate_consume

Advances cursor by bits, consuming an element of it if a rotation is made.

rotate_incr

Advances cursor by 1, consuming an element of it if a rotation is made.