charon_lib::common

Function iterator_to_string

source
pub fn iterator_to_string<T>(
    t_to_string: &dyn Fn(T) -> String,
    it: impl Iterator<Item = T>,
) -> String
Expand description

Custom function to pretty-print elements from an iterator The output format is:

[
  elem_0,
  ...
  elem_n
]