Struct rune::Sources [−][src]
pub struct Sources { /* fields omitted */ }
Expand description
A collection of source files, and a queue of things to compile.
Implementations
Insert a source to be built and return its id.
Trait Implementations
A unique identifier for files in the file provider. This will be used
for rendering diagnostic::Label
s in the corresponding source files. Read more
The user-facing name of a file.
The source code of a file.
The index of the line at the given byte index. If the byte index is past the end of the file, returns the maximum line index in the file. This means that this function only fails if the file is not present. Read more
The byte range of line in the source of the file.
The user-facing line number at the given line index. It is not necessarily checked that the specified line index is actually in the file. Read more
The user-facing column number at the given line index and byte index. Read more