Struct gluon_base::source::FileMap [−][src]
pub struct FileMap { /* fields omitted */ }
Implementations
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 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
Returns the line and column location of byte
Returns the starting position of any comments and whitespace before end
fn comments_between(&self, span: Span<BytePos>) -> CommentIter<'_>ⓘNotable traits for CommentIter<'a>impl<'a> Iterator for CommentIter<'a> type Item = &'a str;
impl<'a> Iterator for CommentIter<'a> type Item = &'a str;