Expand description
This modules holds structures related to source files, ways to analyze them and to convert between byte positions and character positions.
Structs§
- Location
- Describes a location within a source file. The line is 1 indexed while the column is 0 indexed.
- Multi
Byte Char - Identifies the position and the width of a
multi-byte character in a
Source. - Source
- Holds the contents of a file together with the origins where the content came from. Besides the origin it also holds some information used in error reporting.
Enums§
- Source
Origin - This struct holds the origin from which a
Sourcecame from. - Special
Width Char - Identifies the position of a
special width character in a
Source. Special width in this context means a character withbyte width != 1.