Enum syntex_syntax::diagnostic::RenderSpan [] [src]

pub enum RenderSpan {
    FullSpan(Span),
    EndSpan(Span),
    Suggestion(Span, String),
    FileLine(Span),
}

Variants

FullSpan

A FullSpan renders with both with an initial line for the message, prefixed by file:linenum, followed by a summary of the source code covered by the span.

EndSpan

Similar to a FullSpan, but the cited position is the end of the span, instead of the start. Used, at least, for telling compiletest/runtest to look at the last line of the span (since end_highlight_lines displays an arrow to the end of the span).

Suggestion

A suggestion renders with both with an initial line for the message, prefixed by file:linenum, followed by a summary of hypothetical source code, where the String is spliced into the lines in place of the code covered by the span.

FileLine

A FileLine renders with just a line for the message prefixed by file:linenum.

Trait Implementations

Derived Implementations

impl Clone for RenderSpan

fn clone(&self) -> RenderSpan

fn clone_from(&mut self, source: &Self)