pub struct OutputStats {
pub files_processed: usize,
pub total_matches: usize,
pub files_with_matches: usize,
pub processing_time_ms: u64,
}Expand description
Statistics about the output
Fields§
§files_processed: usizeNumber of files processed
total_matches: usizeTotal number of matches
files_with_matches: usizeNumber of files with matches
processing_time_ms: u64Processing time in milliseconds
Implementations§
Source§impl OutputStats
impl OutputStats
Sourcepub fn update_with_results(&mut self, results: &[SearchResult])
pub fn update_with_results(&mut self, results: &[SearchResult])
Update statistics with search results
Trait Implementations§
Source§impl Clone for OutputStats
impl Clone for OutputStats
Source§fn clone(&self) -> OutputStats
fn clone(&self) -> OutputStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OutputStats
impl Debug for OutputStats
Source§impl Default for OutputStats
impl Default for OutputStats
Source§fn default() -> OutputStats
fn default() -> OutputStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OutputStats
impl RefUnwindSafe for OutputStats
impl Send for OutputStats
impl Sync for OutputStats
impl Unpin for OutputStats
impl UnsafeUnpin for OutputStats
impl UnwindSafe for OutputStats
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