pub struct MarkdownIntelligenceProvider { /* private fields */ }Expand description
In-process provider for editor intelligence features.
Implementations§
Source§impl MarkdownIntelligenceProvider
impl MarkdownIntelligenceProvider
pub fn new() -> Self
pub fn update_document(&mut self, document: Document)
pub fn highlights(&self, source: &str) -> Vec<Highlight>
pub fn diagnostics(&self) -> Vec<Diagnostic>
pub fn diagnostics_with_options( &self, options: DiagnosticsOptions, ) -> Vec<Diagnostic>
pub fn hover(&self, position: Position) -> Option<HoverInfo>
pub fn completions(&self, query: &str) -> Vec<CompletionItem>
Trait Implementations§
Source§impl Default for MarkdownIntelligenceProvider
impl Default for MarkdownIntelligenceProvider
Source§fn default() -> MarkdownIntelligenceProvider
fn default() -> MarkdownIntelligenceProvider
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MarkdownIntelligenceProvider
impl RefUnwindSafe for MarkdownIntelligenceProvider
impl Send for MarkdownIntelligenceProvider
impl Sync for MarkdownIntelligenceProvider
impl Unpin for MarkdownIntelligenceProvider
impl UnsafeUnpin for MarkdownIntelligenceProvider
impl UnwindSafe for MarkdownIntelligenceProvider
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