Module smtree::utils [−][src]
Expand description
Various utility functions.
Structs
A Nil SMT node.
Functions
Reads byte_num
bytes from bytes
slice starting at begin
index and interprets them
as a usize in little-ending byte order.
Generates a set of random pairs of tree indexes and values. The function intended for use in testing and benchmarking code.
Prints out the structure of the provided tree
, which makes it visually easy to see the
placement of leaf, padding, and internal nodes.
set_pos_bestDeprecated
set_pos_worstDeprecated
Convert a u64 to TreeIndex.
Converts the provided num
into the specified number of bytes in little-endian byte order.