pub struct HoverProvider { /* private fields */ }Expand description
Hover information provider
Implementations§
Source§impl HoverProvider
impl HoverProvider
Sourcepub fn index_symbols(&mut self, symbols: Vec<Symbol>)
pub fn index_symbols(&mut self, symbols: Vec<Symbol>)
Index symbols for fast lookup
Sourcepub fn get_hover_info(
&self,
code: &str,
position: Position,
) -> Option<HoverInfo>
pub fn get_hover_info( &self, code: &str, position: Position, ) -> Option<HoverInfo>
Get hover information at a specific position
Sourcepub fn get_type_info(&self, symbol_name: &str) -> Option<String>
pub fn get_type_info(&self, symbol_name: &str) -> Option<String>
Get type information for a symbol
Sourcepub fn get_definition_location(
&self,
symbol_name: &str,
) -> Option<(String, u32, u32)>
pub fn get_definition_location( &self, symbol_name: &str, ) -> Option<(String, u32, u32)>
Get definition location for a symbol
Sourcepub fn get_documentation(&self, symbol_name: &str) -> Option<String>
pub fn get_documentation(&self, symbol_name: &str) -> Option<String>
Get documentation for a symbol
Sourcepub fn get_usage_count(&self, symbol_name: &str) -> usize
pub fn get_usage_count(&self, symbol_name: &str) -> usize
Get usage count for a symbol
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HoverProvider
impl RefUnwindSafe for HoverProvider
impl Send for HoverProvider
impl Sync for HoverProvider
impl Unpin for HoverProvider
impl UnwindSafe for HoverProvider
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