concat 0.1.0

A reader adaptor that wraps around an iterator of readers and exposes their contents sequentially, i.e. concatenated.
Documentation
  • Coverage
  • 40%
    2 out of 5 items documented0 out of 3 items with examples
  • Size
  • Source code size: 5.53 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.53 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • frangio/concat.rs
    0 0 1
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • frangio

concat.rs

This library provides the Concat reader adaptor, which wraps around an iterator of readers and exposes its items' contents sequentially. Thus, the contents read from a Concat instance will be the concatenation of the items' contents.

Example usage

Assuming there's a variable files: &mut [File] in scope

let mut c = concat(files.iter_mut());

let mut buf = String::new();
c.read_to_string(&mut buf).unwrap();