Expand description
Byte offsets, zero-based positions, and one-based locations.
Spans are half-open byte ranges over the original UTF-8 input. A line and
column come from a LineIndex, which can count UTF-8
bytes, Unicode scalar values, or UTF-16 code units. A Position counts
from zero, for a machine; a Location counts from one, for a person.
Structsยง
- Location
- A one-based line and column, for display: what
Error::locationreturns and what an error prints. - Position
- A zero-based line and column, as a
LineIndexgives and takes them. - Span
- A half-open byte range in the original input.
- Spanned
- A deserialized value paired with the exact byte
Spanwhere it appeared in the YAML source.