pub struct QueryExecutor<'a> { /* private fields */ }Expand description
クエリ実行器
Implementations§
Source§impl<'a> QueryExecutor<'a>
impl<'a> QueryExecutor<'a>
Sourcepub fn new(ctx: &'a AnalysisContext) -> Self
pub fn new(ctx: &'a AnalysisContext) -> Self
新しいExecutorを作成
Sourcepub fn with_view_mode(self, mode: ViewMode) -> Self
pub fn with_view_mode(self, mode: ViewMode) -> Self
ViewModeを設定
Sourcepub fn execute(&self, query: &Query) -> Result<QueryResponse, ExecuteError>
pub fn execute(&self, query: &Query) -> Result<QueryResponse, ExecuteError>
クエリを実行
Sourcepub fn to_match_result(
&self,
symbol: &DiscoveredSymbol,
mode: ViewMode,
) -> MatchResult
pub fn to_match_result( &self, symbol: &DiscoveredSymbol, mode: ViewMode, ) -> MatchResult
DiscoveredSymbol → MatchResult 変換 (公開API)
CLI等から直接呼び出せるように公開。パターン検索結果を任意のViewModeで MatchResultに変換する。
Sourcepub fn get_def_info_for_symbol(
&self,
symbol: &DiscoveredSymbol,
) -> (Option<String>, Option<String>, Option<String>)
pub fn get_def_info_for_symbol( &self, symbol: &DiscoveredSymbol, ) -> (Option<String>, Option<String>, Option<String>)
Defモード用: 定義詳細情報を取得(公開API)
Auto Trait Implementations§
impl<'a> Freeze for QueryExecutor<'a>
impl<'a> RefUnwindSafe for QueryExecutor<'a>
impl<'a> Send for QueryExecutor<'a>
impl<'a> Sync for QueryExecutor<'a>
impl<'a> Unpin for QueryExecutor<'a>
impl<'a> UnsafeUnpin for QueryExecutor<'a>
impl<'a> UnwindSafe for QueryExecutor<'a>
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> 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