Module utils

Source
Expand description

General utilities.

Enums§

Never
An empty type.

Functions§

collect_array
Collect a vector into an array.
depth
Calculate the depth of a node in the hierarchy.
display_list
Write a comma separated list of of some types. Like debug_list, but using the Display instance rather than Debug, and not adding surrounding square brackets.
display_list_with_separator
Write a separated list of of some types, using a custom separator. Like debug_list, but using the Display instance rather than Debug, and not adding surrounding square brackets.
sorted_consts
Sort some input constants by port and just return the constants.
try_collect_array
Collect a vector into an array.