pub struct RelatedInformation {
pub location: (usize, usize),
pub message: String,
}Expand description
Related information for a diagnostic.
Additional context that helps understand or resolve the main diagnostic.
Fields§
§location: (usize, usize)Location in source code for the related information.
message: StringDescription of the related information.
Trait Implementations§
Source§impl Clone for RelatedInformation
impl Clone for RelatedInformation
Source§fn clone(&self) -> RelatedInformation
fn clone(&self) -> RelatedInformation
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 RelatedInformation
impl Debug for RelatedInformation
Source§impl PartialEq for RelatedInformation
impl PartialEq for RelatedInformation
impl Eq for RelatedInformation
impl StructuralPartialEq for RelatedInformation
Auto Trait Implementations§
impl Freeze for RelatedInformation
impl RefUnwindSafe for RelatedInformation
impl Send for RelatedInformation
impl Sync for RelatedInformation
impl Unpin for RelatedInformation
impl UnsafeUnpin for RelatedInformation
impl UnwindSafe for RelatedInformation
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.