Module hugr_core::utils

source ·
Expand description

General utilities.

Functions§

  • Collect a vector into an array.
  • Calculate the depth of a node in the hierarchy.
  • 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.
  • 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.
  • Sort some input constants by port and just return the constants.
  • Collect a vector into an array.