pub struct RustExtractor;Expand description
Rust language extractor
Trait Implementations§
Source§impl LanguageExtractor for RustExtractor
impl LanguageExtractor for RustExtractor
Source§fn extensions(&self) -> &'static [&'static str]
fn extensions(&self) -> &'static [&'static str]
Get file extensions for this language
Source§fn extract_symbols(
&self,
tree: &Tree,
source: &str,
) -> Result<Vec<ExtractedSymbol>>
fn extract_symbols( &self, tree: &Tree, source: &str, ) -> Result<Vec<ExtractedSymbol>>
Extract symbols from a parsed AST
Source§fn extract_imports(&self, tree: &Tree, source: &str) -> Result<Vec<Import>>
fn extract_imports(&self, tree: &Tree, source: &str) -> Result<Vec<Import>>
Extract import statements from a parsed AST
Source§fn extract_calls(
&self,
tree: &Tree,
source: &str,
current_function: Option<&str>,
) -> Result<Vec<FunctionCall>>
fn extract_calls( &self, tree: &Tree, source: &str, current_function: Option<&str>, ) -> Result<Vec<FunctionCall>>
Extract function calls from a parsed AST
Auto Trait Implementations§
impl Freeze for RustExtractor
impl RefUnwindSafe for RustExtractor
impl Send for RustExtractor
impl Sync for RustExtractor
impl Unpin for RustExtractor
impl UnwindSafe for RustExtractor
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