Struct syntax_pos::SpanLabel [] [src]

pub struct SpanLabel {
    pub span: Span,
    pub is_primary: bool,
    pub label: Option<String>,
}
🔬 This is a nightly-only experimental API. (rustc_private)

Fields

🔬 This is a nightly-only experimental API. (rustc_private)

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

🔬 This is a nightly-only experimental API. (rustc_private)

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

🔬 This is a nightly-only experimental API. (rustc_private)

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.