Crate rev_lines[−][src]
RevLines
This library provides a small Rust Iterator for reading files or
any BufReader
line by line with buffering in reverse.
Example
extern crate rev_lines; use rev_lines::RevLines; use std::io::BufReader; use std::fs::File; fn main() { let file = File::open("tests/multi_line_file").unwrap(); let rev_lines = RevLines::new(BufReader::new(file)).unwrap(); for line in rev_lines { println!("{}", line); } }
This method uses logic borrowed from uutils/coreutils tail
Structs
RevLines |
|