Trait rune::EmitSource[][src]

pub trait EmitSource {
    fn emit_source_line<O>(&self, out: &mut O, span: Span) -> Result<()>
    where
        O: WriteColor
; }

Helper trait to emit source code locations.

These are implemented for Source, so that you can print diagnostics about a source conveniently.

Required methods

fn emit_source_line<O>(&self, out: &mut O, span: Span) -> Result<()> where
    O: WriteColor, 
[src]

Emit the source location as a single line of the given writer.

Loading content...

Implementations on Foreign Types

impl EmitSource for Source[src]

Loading content...

Implementors

Loading content...