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
span: Span
The location in the code.
This Span must come from the same CodeMap used to construct the Emitter.
label: Option<String>
A label used to provide context for the underlined code.
style: SpanStyle
A style used to set the character used for the underline.
Trait Implementations
impl Clone for SpanLabel
[src]
fn clone(&self) -> SpanLabel
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