Trait easy_shortcuts::traits::Print [] [src]

pub trait Print {
    fn print(self, delim: &str);
}

provides a print() method over iterators

Required Methods

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