Struct codemap_diagnostic::SpanLabel [] [src]

pub struct SpanLabel {
    pub span: Span,
    pub label: Option<String>,
    pub style: SpanStyle,
}

A labeled region of the code related to a Diagnostic.

Fields

The location in the code.

This Span must come from the same CodeMap used to construct the Emitter.

A label used to provide context for the underlined code.

A style used to set the character used for the underline.

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.