pub fn concat<I: IntoIterator>(items: I) -> impl ConcatRead
Expand description
Concats multiple readers into a single reader.
use concat_reader::concat;
use std::io::Read;
let value1 = "some string".as_bytes();
let value2 = "another string".as_bytes();
let mut buffer = String::new();
let mut f = concat(vec![value1, value2]);
f.read_to_string(&mut buffer).unwrap();