https://github.com/mjc-gh/rev_lines
  
  
    ⏪ Rust Iterator for reading files line by line with a buffer in reverse  
    https://github.com/mjc-gh/rev_lines
  
buffer reverse rust rust-iterator tail-files
        Last synced: 7 months ago 
        JSON representation
    
⏪ Rust Iterator for reading files line by line with a buffer in reverse
- Host: GitHub
- URL: https://github.com/mjc-gh/rev_lines
- Owner: mjc-gh
- Created: 2017-01-19T00:32:22.000Z (almost 9 years ago)
- Default Branch: main
- Last Pushed: 2023-06-22T00:10:05.000Z (over 2 years ago)
- Last Synced: 2025-04-13T08:12:34.896Z (7 months ago)
- Topics: buffer, reverse, rust, rust-iterator, tail-files
- Language: Rust
- Homepage:
- Size: 43.9 KB
- Stars: 23
- Watchers: 2
- Forks: 12
- Open Issues: 1
- 
            Metadata Files:
            - Readme: README.md
 
Awesome Lists containing this project
README
          # rev_lines
[](https://github.com/mjc-gh/rev_lines/actions/workflows/actions.yml)
[](./LICENSE)
[](https://crates.io/crates/rev_lines)
This library provides a small Rust Iterator for reading files line by
line with a buffer in reverse
## Documentation
Documentation is available on [Docs.rs](https://docs.rs/rev_lines).
## Example
```rust
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);
}
```