pub struct RustAnalyzer { /* private fields */ }Expand description
Rust language analyzer using tree-sitter.
Implementations§
Trait Implementations§
Source§impl LanguageAnalyzer for RustAnalyzer
impl LanguageAnalyzer for RustAnalyzer
Source§fn file_extensions(&self) -> &[&str]
fn file_extensions(&self) -> &[&str]
File extensions this analyzer handles (e.g., &[“go”])
Source§fn parse_file(&self, path: &Path, content: &str) -> Result<ParsedFile>
fn parse_file(&self, path: &Path, content: &str) -> Result<ParsedFile>
Parse a source file into a ParsedFile.
Source§fn extract_components(&self, parsed: &ParsedFile) -> Vec<Component>
fn extract_components(&self, parsed: &ParsedFile) -> Vec<Component>
Extract architectural components from a parsed file.
Source§fn extract_dependencies(&self, parsed: &ParsedFile) -> Vec<Dependency>
fn extract_dependencies(&self, parsed: &ParsedFile) -> Vec<Dependency>
Extract dependencies (imports, type references, etc.) from a parsed file.
Source§fn is_stdlib_import(&self, _import_path: &str) -> bool
fn is_stdlib_import(&self, _import_path: &str) -> bool
Returns true if the given import path is a standard library import
that should be excluded from architectural analysis.
Auto Trait Implementations§
impl Freeze for RustAnalyzer
impl RefUnwindSafe for RustAnalyzer
impl Send for RustAnalyzer
impl Sync for RustAnalyzer
impl Unpin for RustAnalyzer
impl UnsafeUnpin for RustAnalyzer
impl UnwindSafe for RustAnalyzer
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