Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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);
}
```