Module span

Source
Expand description

Span to point to sections of source code and the Spanned wrapper type

Structs§

Span
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.
Spanned
A spanned area of interest, generic over what kind of thing is of interest

Traits§

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