pub struct Engine<'a> { /* private fields */ }Implementations§
Source§impl<'a> Engine<'a>
impl<'a> Engine<'a>
pub fn new(config: &'a Config) -> Self
pub fn analyze(&self, path: &Path) -> Result<Vec<Diagnostic>>
Sourcepub fn analyze_with_progress<F>(
&self,
path: &Path,
progress_callback: F,
) -> Result<Vec<Diagnostic>>
pub fn analyze_with_progress<F>( &self, path: &Path, progress_callback: F, ) -> Result<Vec<Diagnostic>>
Analyze with progress callback for streaming feedback.
The callback is invoked after each file is analyzed, providing progress information. This enables UI feedback during long analyses without requiring full architectural changes.
§Arguments
path- Path to analyze (file or directory)progress_callback- Called after each file with current progress
§Example
ⓘ
engine.analyze_with_progress(path, |progress| {
eprintln!("Progress: {}/{} files, {} issues",
progress.files_analyzed,
progress.total_files,
progress.diagnostics_found);
})?;Auto Trait Implementations§
impl<'a> Freeze for Engine<'a>
impl<'a> RefUnwindSafe for Engine<'a>
impl<'a> Send for Engine<'a>
impl<'a> Sync for Engine<'a>
impl<'a> Unpin for Engine<'a>
impl<'a> UnwindSafe for Engine<'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