[][src]Crate asciifile

Re-exports

pub use self::file::AsciiFile;
pub use self::iter::PositionIterator;
pub use self::iter::ReversePositionIterator;
pub use self::line_number_cache::LineNumberCache;
pub use self::maybe_spanned::MaybeSpanned;
pub use self::position::Position;
pub use self::span::Span;
pub use self::spanned::Spanned;

Modules

file

Represents an input file that my only contain ASCII characters. The abstractions Position and Span represent a type-safe index-less wrapper around a ASCII character, respectively a range of characters (a slice) with positional information.

iter
line_number_cache

Caches information about linebreaks that allows us to reconstruct the line number and character column in O(log N). This makes sense as we only request line numbers in a few cases (e.g. on error).

maybe_spanned
position

abstraction over a character and its position within a file.

span

Input File Ranges

spanned