Trait rune::EmitSource[][src]

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

Helper trait to emit source code locations.

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

Required methods

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

Implementations on Foreign Types

Implementors