::std::

Module num

Structs

Gray

A number encoded into Gray code.

Functions

abs

Computes the absolute value of a signed integer.

concat

Creates an integer by concatenating the bits of two existing ones.

gray_to_bin_impl

Returns the binary value of the given gray code value

sext

Increases the size of a signed integer by replicating its sign bit.

trunc

Reduces the size of an integer by truncating away the excess highest significant bits.

zext

Increases the size of an unsigned integer by extending it with zeros on the most significant side.