[][src]Module gluon_base::pos

Source code locations (borrowed from rustc's libsyntax_pos)

Structs

ByteOffset

A byte offset in a source file

BytePos

A byte position in a source file. The index is continuous, running over all files in a CodeMap, starting with 1. Zero is reserved for positions that do not point to a valid file. One byte of padding is added between each file.

Column

A zero-indexed column offset into a source file

ColumnOffset

A column offset in a source file

Line

A zero-indexed line offset into a source file

LineOffset

A line offset in a source file

Location

A location in a source file

Positioned
Span

A region of code in a source file

Spanned

Traits

HasSpan

Functions

span
spanned
spanned2