adze-linecol-core 0.1.0

Line/column byte-position tracking utilities for parser lexers and scanners.
Documentation
  • Coverage
  • 100%
    9 out of 9 items documented6 out of 6 items with examples
  • Size
  • Source code size: 51 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.58 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 44s Average build duration of successful builds.
  • all releases: 44s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • EffortlessMetrics/adze
    0 0 24
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • EffortlessSteven

adze-linecol-core

Line/column byte-position tracking utilities for parser lexers and scanners.

Part of the adze workspace.

Usage

use adze_linecol_core::LineCol;

let lc = LineCol::at_position(b"hello\nworld", 8);
assert_eq!(lc.line, 1);
assert_eq!(lc.column(8), 2);

License

Licensed under either of Apache License, Version 2.0 or MIT License at your option.