Struct codemap_diagnostic::SpanLabel
source · pub struct SpanLabel {
pub span: Span,
pub label: Option<String>,
pub style: SpanStyle,
}
Expand description
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§
source§impl PartialEq for SpanLabel
impl PartialEq for SpanLabel
impl Eq for SpanLabel
impl StructuralPartialEq for SpanLabel
Auto Trait Implementations§
impl Freeze for SpanLabel
impl RefUnwindSafe for SpanLabel
impl Send for SpanLabel
impl Sync for SpanLabel
impl Unpin for SpanLabel
impl UnwindSafe for SpanLabel
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)