pub struct DiagnosticLabel {
pub range: TextRange,
pub message: Arc<str>,
pub is_primary: bool,
}Expand description
A labeled span attached to a Diagnostic.
Fields§
§range: TextRange§message: Arc<str>§is_primary: boolTrait Implementations§
Source§impl Clone for DiagnosticLabel
impl Clone for DiagnosticLabel
Source§fn clone(&self) -> DiagnosticLabel
fn clone(&self) -> DiagnosticLabel
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 DiagnosticLabel
impl Debug for DiagnosticLabel
Source§impl PartialEq for DiagnosticLabel
impl PartialEq for DiagnosticLabel
impl Eq for DiagnosticLabel
impl StructuralPartialEq for DiagnosticLabel
Auto Trait Implementations§
impl Freeze for DiagnosticLabel
impl RefUnwindSafe for DiagnosticLabel
impl Send for DiagnosticLabel
impl Sync for DiagnosticLabel
impl Unpin for DiagnosticLabel
impl UnsafeUnpin for DiagnosticLabel
impl UnwindSafe for DiagnosticLabel
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