reading-liner 0.4.0

A Stream reader which can convert between byte offset and line-column numbers. Support any type which implements io::Read.
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! The central Reader of this crate.
//!
//! The reader [Stream] wraps any types implementing [std::io::Read] and an extra [Index].
//! [Stream] can be used and passed as common reader. When consumed, the [Stream] is gone and the extra [Index] can be used.
//!
//! If you want to read and query locations simutaneously, [Index] can be reborrowed from [Stream].
mod alias;
mod stream;

pub use alias::{Guard, IndexRef, MutGuard};
pub use stream::Stream;