pub struct LabeledSpan {
pub label: String,
pub span: Span,
}Expand description
A named source range: a label plus a span.
Used in diagnostics to annotate specific regions of source text.
Fields§
§label: StringHuman-readable label for this region.
span: SpanThe source span.
Implementations§
Trait Implementations§
Source§impl Clone for LabeledSpan
impl Clone for LabeledSpan
Source§fn clone(&self) -> LabeledSpan
fn clone(&self) -> LabeledSpan
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LabeledSpan
impl Debug for LabeledSpan
Source§impl PartialEq for LabeledSpan
impl PartialEq for LabeledSpan
impl StructuralPartialEq for LabeledSpan
Auto Trait Implementations§
impl Freeze for LabeledSpan
impl RefUnwindSafe for LabeledSpan
impl Send for LabeledSpan
impl Sync for LabeledSpan
impl Unpin for LabeledSpan
impl UnsafeUnpin for LabeledSpan
impl UnwindSafe for LabeledSpan
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