Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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 8 years ago)
- Default Branch: main
- Last Pushed: 2023-06-22T00:10:05.000Z (over 1 year ago)
- Last Synced: 2024-10-10T20:19:55.954Z (about 1 month ago)
- Topics: buffer, reverse, rust, rust-iterator, tail-files
- Language: Rust
- Homepage:
- Size: 43.9 KB
- Stars: 23
- Watchers: 3
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rev_lines
[![rev-lines](https://github.com/mjc-gh/rev_lines/actions/workflows/actions.yml/badge.svg)](https://github.com/mjc-gh/rev_lines/actions/workflows/actions.yml)
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)
[![crates.io](https://img.shields.io/crates/v/rev-lines.svg)](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);
}
```