Trait Print

Source
pub trait Print {
    // Required method
    fn print(self, delim: &str);
}
Expand description

provides a print() method over iterators

Required Methods§

Source

fn print(self, delim: &str)

Consume values that implement Display and print them out to stdout with the given terminator.

 use easy_shortcuts::traits::Print;

 [10,20,30].into_iter().print("\n");

Implementors§

Source§

impl<T, I> Print for I
where T: Display, I: Iterator<Item = T>,