Struct cranelift_isle::error::Source [−][src]
pub struct Source { /* fields omitted */ }
Expand description
A source file and its contents.
Implementations
Trait Implementations
fn read_span<'a>(
&'a self,
span: &SourceSpan,
context_lines_before: usize,
context_lines_after: usize
) -> Result<Box<dyn SpanContents<'a> + 'a>, MietteError>
fn read_span<'a>(
&'a self,
span: &SourceSpan,
context_lines_before: usize,
context_lines_after: usize
) -> Result<Box<dyn SpanContents<'a> + 'a>, MietteError>
Read the bytes for a specific span from this SourceCode, keeping a certain number of lines before and after the span as context. Read more
Auto Trait Implementations
impl RefUnwindSafe for Source
impl UnwindSafe for Source
Blanket Implementations
Mutably borrows from an owned value. Read more