oak_runtime

Module str_stream

Source
Expand description

Implementation of Stream for &'a str type. It implements all traits required by CharStream.

Structsยง

  • A (half-open) range bounded inclusively below and exclusively above (start..end).
  • Spans represent a region of code, used for error reporting. Positions in spans are absolute positions from the beginning of the codemap, not positions relative to FileMaps. Methods on the CodeMap can be used to relate spans back to the original source. You must be careful if the span crosses more than one file - you will not be able to use many of the functions on spans in codemap and you cannot assume that the length of the span = hi - lo; there may be space in the BytePos range between files.
  • Represents a stream from a &'a str. It implements all traits required by CharStream.