anyreader-walker 0.2.1

A library for reading streams of compressed and uncompressed data without knowing the format in advance
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
mod file;
mod tarfile;
mod zipfile;

use crate::stack::AnyWalker;
pub use file::FileWalker;
use std::io::Read;
pub use tarfile::TarWalker;
pub use zipfile::ZipWalker;

pub trait ArchiveVisitor<'a> {
    type Item: Read + 'a;

    fn visit<V: AnyWalker>(self, visitor: &mut V) -> std::io::Result<()>;
}