charon_lib::common

Function write_iterator

source
pub fn write_iterator<T: Copy>(
    write_t: &dyn Fn(&mut Formatter<'_>, T) -> Result<(), Error>,
    f: &mut Formatter<'_>,
    it: impl Iterator<Item = T>,
) -> Result<(), Error>
Expand description

Rk.: in practice, T should be a shared ref