Crate text_scanner

source ·
Expand description

See Scanner docs for more information and its methods for many examples.

Modules

Structs

  • An iterator over chars and their start and end byte positions.
  • An iterator over chars and their start and end byte positions, with an offset applied to all positions.
  • A Scanner is a UTF-8 char text scanner, implementing various methods for scanning a string slice, as well as backtracking capabilities, which can be used to implement lexers for tokenizing text or code. It is essentially just a fancy wrapper around CharRanges.

Traits

Type Definitions