pub struct Statistics {
pub files_processed: usize,
pub files_skipped: usize,
pub directories_visited: usize,
pub total_tokens: usize,
pub max_tokens: usize,
pub max_tokens_file: String,
pub processing_time: Duration,
pub output_file: String,
}Expand description
Represents the statistics collected during the file combining process.
Fields§
§files_processed: usize§files_skipped: usize§directories_visited: usize§total_tokens: usize§max_tokens: usize§max_tokens_file: String§processing_time: Duration§output_file: StringImplementations§
Source§impl Statistics
impl Statistics
Sourcepub fn increment_processed_files(&mut self)
pub fn increment_processed_files(&mut self)
Increments the count of processed files.
Sourcepub fn update_token_stats(&mut self, tokens: usize, file_path: String)
pub fn update_token_stats(&mut self, tokens: usize, file_path: String)
Updates the statistics with information from a processed file.
Sourcepub fn increment_skipped_files(&mut self)
pub fn increment_skipped_files(&mut self)
Increments the count of skipped files.
Sourcepub fn increment_directories_visited(&mut self)
pub fn increment_directories_visited(&mut self)
Increments the count of visited directories.
Sourcepub fn set_processing_time(&mut self, duration: Duration)
pub fn set_processing_time(&mut self, duration: Duration)
Sets the processing time.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Statistics
impl RefUnwindSafe for Statistics
impl Send for Statistics
impl Sync for Statistics
impl Unpin for Statistics
impl UnwindSafe for Statistics
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