Struct syntex_pos::SpanLabel [] [src]

pub struct SpanLabel {
    pub span: Span,
    pub is_primary: bool,
    pub label: Option<String>,
}

Fields

The span we are going to include in the final snippet.

Is this a primary span? This is the "locus" of the message, and is indicated with a ^^^^ underline, versus ----.

What label should we attach to this span (if any)?

Trait Implementations

impl Clone for SpanLabel
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for SpanLabel
[src]

Formats the value using the given formatter.