Struct language2::DiagnosticEntry
source · pub struct DiagnosticEntry<T> {
pub range: Range<T>,
pub diagnostic: Diagnostic,
}
Fields§
§range: Range<T>
§diagnostic: Diagnostic
Implementations§
source§impl<T> DiagnosticEntry<T>
impl<T> DiagnosticEntry<T>
pub fn to_lsp_diagnostic_stub(&self) -> Diagnostic
source§impl DiagnosticEntry<Anchor>
impl DiagnosticEntry<Anchor>
pub fn resolve<O: FromAnchor>( &self, buffer: &BufferSnapshot ) -> DiagnosticEntry<O>
Trait Implementations§
source§impl<T: Clone> Clone for DiagnosticEntry<T>
impl<T: Clone> Clone for DiagnosticEntry<T>
source§fn clone(&self) -> DiagnosticEntry<T>
fn clone(&self) -> DiagnosticEntry<T>
Returns a copy 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<T: Debug> Debug for DiagnosticEntry<T>
impl<T: Debug> Debug for DiagnosticEntry<T>
source§impl Item for DiagnosticEntry<Anchor>
impl Item for DiagnosticEntry<Anchor>
source§impl<T: PartialEq> PartialEq<DiagnosticEntry<T>> for DiagnosticEntry<T>
impl<T: PartialEq> PartialEq<DiagnosticEntry<T>> for DiagnosticEntry<T>
source§fn eq(&self, other: &DiagnosticEntry<T>) -> bool
fn eq(&self, other: &DiagnosticEntry<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: Eq> Eq for DiagnosticEntry<T>
impl<T> StructuralEq for DiagnosticEntry<T>
impl<T> StructuralPartialEq for DiagnosticEntry<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for DiagnosticEntry<T>where T: RefUnwindSafe,
impl<T> Send for DiagnosticEntry<T>where T: Send,
impl<T> Sync for DiagnosticEntry<T>where T: Sync,
impl<T> Unpin for DiagnosticEntry<T>where T: Unpin,
impl<T> UnwindSafe for DiagnosticEntry<T>where T: UnwindSafe,
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.