Struct ariadne::Source [−][src]
pub struct Source { /* fields omitted */ }
Expand description
A type representing a single source that may be referred to by Span
s.
In most cases, a source is a single input file.
Implementations
Return an iterator over the characters in the source.
Return an iterator over the Line
s in this source.
Get the line that the given offset appears on, and the line/column numbers of the offset.
Note that the line/column numbers are zero-indexed.
Get the range of lines that this span runs across.
The resulting range is guaranteed to contain valid line indices (i.e: those that can be used for
Source::line
).
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Source
impl UnwindSafe for Source