pub trait SymbolProvider<L>where
L: Language,{
// Required method
fn document_symbols<S>(
&self,
uri: &str,
root: &RedNode<'_, L>,
source: &S,
) -> Vec<SymbolInformation>
where S: Source + ?Sized;
}Expand description
Trait for languages that support symbol search and navigation.
Required Methods§
Sourcefn document_symbols<S>(
&self,
uri: &str,
root: &RedNode<'_, L>,
source: &S,
) -> Vec<SymbolInformation>
fn document_symbols<S>( &self, uri: &str, root: &RedNode<'_, L>, source: &S, ) -> Vec<SymbolInformation>
Returns symbols defined in the document.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.