Module utils

Source
Expand description

This module exposes some utility functions, mainly for creating visual things.

Functionsยง

get_bin_repr
Returns the binary representation of bytes. E.g., 65535 -> 11111111 11111111
get_dec_repr
Returns the decimal representation of bytes.
get_hex_repr
Returns the hexadecimal representation of bytes. E.g., 65535 -> 0xFF 0xFF
name_of
Returns the name of a type as a string slice, or the name of the type of value.