Split anything implementing Read trait by multiple sequences of bytes
Add this to Cargo.toml, under [dependencies]
:
toml
split_by = "0.2"
```rust extern crate splitby; use splitby::{AcAutomaton, SplitBy} use std::fs::File;
fn main() {
for section in File::open("path/to/file").unwrap().split_by(&AcAutomaton::new(vec!["