#spans #slice

slicey

Ways to associate data with parts of a string

10 releases

0.1.9 Dec 11, 2024
0.1.8 Dec 10, 2024

#7 in #span

48 downloads per month

MIT/Apache

13KB
310 lines

Slicey

Slicey provides two simple ways to associate data with parts of a string:

  • Spanned: Represents data and a range.
  • Sliced: Represents data, a range, and a source string.

See their documentation for more info.


lib.rs:

Slicey

Slicey provides two simple ways to associate data with parts of a string:

  • [struct@Spanned]: Represents data and a range.
  • [struct@Sliced]: Represents data, a range, and a source string.

See their documentation for more info.

Dependencies

~220–660KB
~16K SLoC