pub struct LabeledSpan {
pub span: TextRange,
pub label: Option<String>,
}Expand description
A labeled span for secondary diagnostic locations.
Fields§
§span: TextRangeSource range this secondary span points to.
label: Option<String>Optional human-readable label describing the span’s role.
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 (const: unstable) · 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
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