Struct mun_diagnostics::SourceAnnotation
source · pub struct SourceAnnotation {
pub range: TextRange,
pub message: String,
}
Expand description
! This crate provides in-depth human-readable diagnostic information and fixes for compiler ! errors that can be shared between the compiler and the language server. ! ! The processing of diagnostics into human-readable is separated from the machine-readable ! diagnostics in for instance the HIR crate for performance reasons. This enables lazily querying ! the system for more information only when required. An annotation within the source code
Fields§
§range: TextRange
The location in the source
message: String
The message
Trait Implementations§
source§impl Clone for SourceAnnotation
impl Clone for SourceAnnotation
source§fn clone(&self) -> SourceAnnotation
fn clone(&self) -> SourceAnnotation
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 Debug for SourceAnnotation
impl Debug for SourceAnnotation
source§impl From<SecondaryAnnotation> for SourceAnnotation
impl From<SecondaryAnnotation> for SourceAnnotation
source§fn from(annotation: SecondaryAnnotation) -> Self
fn from(annotation: SecondaryAnnotation) -> Self
Converts to this type from the input type.
source§impl PartialEq<SourceAnnotation> for SourceAnnotation
impl PartialEq<SourceAnnotation> for SourceAnnotation
source§fn eq(&self, other: &SourceAnnotation) -> bool
fn eq(&self, other: &SourceAnnotation) -> bool
impl Eq for SourceAnnotation
impl StructuralEq for SourceAnnotation
impl StructuralPartialEq for SourceAnnotation
Auto Trait Implementations§
impl RefUnwindSafe for SourceAnnotation
impl Send for SourceAnnotation
impl Sync for SourceAnnotation
impl Unpin for SourceAnnotation
impl UnwindSafe for SourceAnnotation
Blanket Implementations§
source§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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.