Expand description
Span (Span) and error (Error) related implementations.
In laps, Span represents a region of the input characters,
which consists of a start location and an end location. Location is a
line-column pair.
For example, for the following input:
The quick brown fox
jumps over the lazy dog.Span 1:5-1:9 corresponds to:
The quick brown fox
^^^^^
jumps over the lazy dog.Span 1:17-2:10 corresponds to:
The quick brown fox
^^^
jumps over the lazy dog.
^^^^^^^^^^Structs§
Enums§
Traits§
- Location
Update - Trait for updating a location with a specific character type.
- Spanned
- Trait for getting span from objects.
- TrySpan
- Trait for getting span from objects that may not contain a span.
Type Aliases§
Derive Macros§
- Spanned
macros - Generates the
Spannedtrait implementation.