[−][src]Function concat_reader::concat
pub fn concat<I: IntoIterator>(items: I) -> impl ConcatRead where
I::Item: Read,
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();