Module rustpython_ast::source_code
source · Structs§
- Index for fast byte offset to
SourceLocation
conversions. - Converts source code byte-offset to Python convention line and column numbers.
- Type-safe wrapper for a value whose logical range starts at
1
, for instance the line or column numbers in a file - Converts source code byte-offset to Python convention line and column numbers.
- Gives access to the source code of a file and allows mapping between
TextSize
andSourceLocation
.
Functions§
- Finds the next newline character. Returns its position and the
LineEnding
.