Module nu_protocol::span

source ·

Structs§

  • Spans are a global offset across all seen files, which are cached in the engine’s state. The start and end offset together make the inclusive start/exclusive end pair for where to underline to highlight a given point of interest.
  • A spanned area of interest, generic over what kind of thing is of interest

Traits§

  • An extension trait for Result, which adds a span to the error type.
  • Helper trait to create Spanned more ergonomically.

Functions§

  • Used when you have a slice of spans of at least size 1