Crates.io | rev_lines |
lib.rs | rev_lines |
version | 0.3.0 |
source | src |
created_at | 2017-02-01 01:04:06.47064 |
updated_at | 2023-06-22 00:10:27.557406 |
description | Rust Iterator for reading files line by line with a buffer in reverse |
homepage | |
repository | https://github.com/mikeycgto/rev_lines |
max_upload_size | |
id | 8329 |
size | 40,425 |
This library provides a small Rust Iterator for reading files line by line with a buffer in reverse
Documentation is available on Docs.rs.
use std::fs::File;
use rev_lines::RevLines;
let file = File::open("README.md").unwrap();
let rev_lines = RevLines::new(file);
for line in rev_lines {
println!("{:?}", line);
}