pub struct LspQueryEngine { /* private fields */ }Expand description
LSP 查询引擎
Implementations§
Trait Implementations§
Source§impl Default for LspQueryEngine
impl Default for LspQueryEngine
Source§impl QueryEngine for LspQueryEngine
impl QueryEngine for LspQueryEngine
Source§fn go_to_definition<'life0, 'async_trait>(
&'life0 self,
location: CodeLocation,
) -> Pin<Box<dyn Future<Output = Layer3Result<Option<QueryResult>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn go_to_definition<'life0, 'async_trait>(
&'life0 self,
location: CodeLocation,
) -> Pin<Box<dyn Future<Output = Layer3Result<Option<QueryResult>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
查询符号定义
Source§fn find_references<'life0, 'async_trait>(
&'life0 self,
location: CodeLocation,
) -> Pin<Box<dyn Future<Output = Layer3Result<Vec<QueryResult>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn find_references<'life0, 'async_trait>(
&'life0 self,
location: CodeLocation,
) -> Pin<Box<dyn Future<Output = Layer3Result<Vec<QueryResult>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
查询符号引用
Source§fn go_to_implementation<'life0, 'async_trait>(
&'life0 self,
location: CodeLocation,
) -> Pin<Box<dyn Future<Output = Layer3Result<Vec<QueryResult>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn go_to_implementation<'life0, 'async_trait>(
&'life0 self,
location: CodeLocation,
) -> Pin<Box<dyn Future<Output = Layer3Result<Vec<QueryResult>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
查询接口实现
Source§fn go_to_type_definition<'life0, 'async_trait>(
&'life0 self,
location: CodeLocation,
) -> Pin<Box<dyn Future<Output = Layer3Result<Option<QueryResult>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn go_to_type_definition<'life0, 'async_trait>(
&'life0 self,
location: CodeLocation,
) -> Pin<Box<dyn Future<Output = Layer3Result<Option<QueryResult>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
查询类型定义
Source§fn hover<'life0, 'async_trait>(
&'life0 self,
location: CodeLocation,
) -> Pin<Box<dyn Future<Output = Layer3Result<Option<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn hover<'life0, 'async_trait>(
&'life0 self,
location: CodeLocation,
) -> Pin<Box<dyn Future<Output = Layer3Result<Option<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
获取悬停信息
Source§fn document_symbols<'life0, 'async_trait>(
&'life0 self,
file: PathBuf,
) -> Pin<Box<dyn Future<Output = Layer3Result<Vec<SymbolInfo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn document_symbols<'life0, 'async_trait>(
&'life0 self,
file: PathBuf,
) -> Pin<Box<dyn Future<Output = Layer3Result<Vec<SymbolInfo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
列出文档符号
Source§fn workspace_symbols<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 str,
) -> Pin<Box<dyn Future<Output = Layer3Result<Vec<SymbolInfo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn workspace_symbols<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 str,
) -> Pin<Box<dyn Future<Output = Layer3Result<Vec<SymbolInfo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
工作区符号搜索
Source§fn query<'life0, 'async_trait>(
&'life0 self,
query_type: QueryType,
location: CodeLocation,
) -> Pin<Box<dyn Future<Output = Layer3Result<Vec<QueryResult>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn query<'life0, 'async_trait>(
&'life0 self,
query_type: QueryType,
location: CodeLocation,
) -> Pin<Box<dyn Future<Output = Layer3Result<Vec<QueryResult>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
通用查询方法
Auto Trait Implementations§
impl !RefUnwindSafe for LspQueryEngine
impl !UnwindSafe for LspQueryEngine
impl Freeze for LspQueryEngine
impl Send for LspQueryEngine
impl Sync for LspQueryEngine
impl Unpin for LspQueryEngine
impl UnsafeUnpin for LspQueryEngine
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more