display_buffered

A small library that provides convinience function to write all the elements into a writer with buffering

Examples

```rust use displaybuffered::displaybuffered;

use std::io::stdout;

// Prints 10, 20 and 30 on sepparate lines display_buffered([10, 20, 30], stdout()).unwrap() ```

```rust use displaybuffered::writebuffered;

use std::io::stdout;

// Prints 102030 write_buffered(["10", "20", "30"], stdout()).unwrap() ```

```rust use displaybuffered::writebuffered_separated;

use std::io::stdout;

// Prints "ItJustWorks" writebufferedseparated(["It", "Just", "Works"], stdout(), b"_").unwrap() ```

```rust use displaybuffered::writebufferedseparatedwith;

use std::io::stdout;

writebufferedseparatedwith(["It", "Just", "Works"], stdout(), |i, _| { if i % 2 == 0 { "" } else { "-" } }) .unwrap(); // Prints "It-Just_Works" ```