Enum syntex_syntax::errors::RenderSpan
[−]
[src]
pub enum RenderSpan { FullSpan(MultiSpan), EndSpan(MultiSpan), Suggestion(CodeSuggestion), FileLine(MultiSpan), }
Variants
FullSpan(MultiSpan)
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(MultiSpan)
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(CodeSuggestion)
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 each String
is spliced
into the lines in place of the code covered by each span.
FileLine(MultiSpan)
A FileLine renders with just a line for the message prefixed by file:linenum.
Trait Implementations
impl Clone for RenderSpan
[src]
fn clone(&self) -> RenderSpan
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more