reverse-lines

Crates.ioreverse-lines
lib.rsreverse-lines
version0.1.1
sourcesrc
created_at2023-06-10 03:01:30.627293
updated_at2023-06-10 04:30:52.395882
descriptionRust Iterator for reading files line by line with a buffer in reverse
homepage
repositoryhttps://github.com/Elizafox/reverse_lines
max_upload_size
id886676
size12,227
Elizabeth Myers (Elizafox)

documentation

https://docs.rs/reverse_lines

README

reverse_lines

This library provides a small Rust Iterator for reading files line by line with a buffer in reverse.

It is a rework of rev_lines.

Documentation

Documentation is available on Docs.rs.

Example

extern crate reverse_lines;

use reverse_lines::ReverseLines;

let file = File::open("/path/to/file").unwrap();
let mut reverse_lines = ReverseLines::new(file).unwrap();

for line in reverse_lines {
    println!("{}", line.unwrap());
}
Commit count: 26

cargo fmt