项目作者: mjc-gh

项目描述 :
⏪ Rust Iterator for reading files line by line with a buffer in reverse
高级语言: Rust
项目地址: git://github.com/mjc-gh/rev_lines.git
创建时间: 2017-01-19T00:32:22Z
项目社区:https://github.com/mjc-gh/rev_lines

开源协议:

下载


rev_lines

rev-lines
MIT licensed
crates.io

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.

Example

  1. use std::fs::File;
  2. use rev_lines::RevLines;
  3. let file = File::open("README.md").unwrap();
  4. let rev_lines = RevLines::new(file);
  5. for line in rev_lines {
  6. println!("{:?}", line);
  7. }