pub struct RelatedLocation {
pub span: Span,
pub message: String,
}Expand description
Related location for a diagnostic (e.g. “first declared here” for duplicate name).
Fields§
§span: SpanSpan of the related occurrence.
message: StringShort message to show at that location (e.g. “first declared here”).
Trait Implementations§
Source§impl Clone for RelatedLocation
impl Clone for RelatedLocation
Source§fn clone(&self) -> RelatedLocation
fn clone(&self) -> RelatedLocation
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 moreAuto Trait Implementations§
impl Freeze for RelatedLocation
impl RefUnwindSafe for RelatedLocation
impl Send for RelatedLocation
impl Sync for RelatedLocation
impl Unpin for RelatedLocation
impl UnsafeUnpin for RelatedLocation
impl UnwindSafe for RelatedLocation
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