pub struct LspEnrichment {
pub document_version: DocumentVersion,
pub capabilities: LspCapabilities,
pub symbols: Vec<SemanticDocumentSymbol>,
pub references: Vec<SemanticReference>,
pub diagnostics: Vec<Diagnostic>,
}Expand description
Complete enrichment snapshot tied to one document version.
§Examples
use ailloli_ui_editor::{DocumentVersion, LspCapabilities, LspEnrichment};
let enrichment = LspEnrichment { document_version: DocumentVersion(3), capabilities: LspCapabilities::default(), symbols: vec![], references: vec![], diagnostics: vec![] };
assert_eq!(enrichment.document_version, DocumentVersion(3));Fields§
§document_version: DocumentVersionDocument version captured before backend queries.
capabilities: LspCapabilitiesCapability snapshot used to decide which queries ran.
symbols: Vec<SemanticDocumentSymbol>Raw semantic symbols from the backend.
references: Vec<SemanticReference>Raw semantic references from the backend.
diagnostics: Vec<Diagnostic>Current-version mapped LSP diagnostics.
Trait Implementations§
Source§impl Clone for LspEnrichment
impl Clone for LspEnrichment
Source§fn clone(&self) -> LspEnrichment
fn clone(&self) -> LspEnrichment
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 LspEnrichment
impl Debug for LspEnrichment
Source§impl<'de> Deserialize<'de> for LspEnrichment
impl<'de> Deserialize<'de> for LspEnrichment
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LspEnrichment
impl PartialEq for LspEnrichment
Source§impl Serialize for LspEnrichment
impl Serialize for LspEnrichment
impl Eq for LspEnrichment
impl StructuralPartialEq for LspEnrichment
Auto Trait Implementations§
impl Freeze for LspEnrichment
impl RefUnwindSafe for LspEnrichment
impl Send for LspEnrichment
impl Sync for LspEnrichment
impl Unpin for LspEnrichment
impl UnwindSafe for LspEnrichment
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.