Skip to main content

ListsDebug

Trait ListsDebug 

Source
pub trait ListsDebug {
    // Required method
    fn lists_debug(
        &self,
        intra_separator: &str,
        inter_separator: &str,
    ) -> String;
}
Expand description

Extension trait to convert a list of lists of debuggable items into a single string. For example, vec![vec![Some(1), Some(2)], vec![Some(3)]].lists_debug(", ", " | ") will produce the string "[Some(1), Some(2)] | [Some(3)]".

Required Methods§

Source

fn lists_debug(&self, intra_separator: &str, inter_separator: &str) -> String

Implementors§

Source§

impl<H, I, J> ListsDebug for J
where for<'a> &'a I: IntoIterator<Item = &'a H>, for<'a> &'a J: IntoIterator<Item = &'a I>, H: Debug,