pub struct Analyzer { /* private fields */ }Implementations§
Source§impl Analyzer
impl Analyzer
pub fn new(config: AnalyzerConfig) -> Self
pub fn supports_path(&self, path: &str) -> bool
pub const fn max_file_bytes(&self) -> u64
Sourcepub fn analyze(&self, repository: impl AsRef<Path>) -> Result<Snapshot>
pub fn analyze(&self, repository: impl AsRef<Path>) -> Result<Snapshot>
Analyzes a repository into a deterministic, evidence-carrying snapshot.
§Errors
Returns an error when the repository cannot be read, an adapter cannot initialize, or normalized facts violate graph integrity.
Sourcepub fn analyze_sources(
&self,
repository: impl AsRef<Path>,
revision: impl Into<String>,
sources: impl IntoIterator<Item = SourceInput>,
) -> Result<Snapshot>
pub fn analyze_sources( &self, repository: impl AsRef<Path>, revision: impl Into<String>, sources: impl IntoIterator<Item = SourceInput>, ) -> Result<Snapshot>
Analyzes an immutable set of source blobs without materializing a tree.
This is the bridge used by the Git module for revision-aware graph
comparisons. The repository path only supplies stable repository
identity; every analyzed byte comes from sources.
§Errors
Returns parser or graph validation failures.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Analyzer
impl !UnwindSafe for Analyzer
impl Freeze for Analyzer
impl Send for Analyzer
impl Sync for Analyzer
impl Unpin for Analyzer
impl UnsafeUnpin for Analyzer
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