Struct codespan_reporting::Label [] [src]

pub struct Label {
    pub span: ByteSpan,
    pub message: Option<String>,
    pub style: LabelStyle,
}

A label describing an underlined region of code associated with a diagnostic

Fields

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

A message to provide some additional information for the underlined code.

The style to use for the label.

Methods

impl Label
[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl Clone for Label
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Label
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Label

impl Sync for Label