pub struct FormattingStats {
pub formatted_files: usize,
pub files_needing_formatting: usize,
pub total_files: usize,
}
Expand description
Statistics about formatting operations
Fields§
§formatted_files: usize
Number of files that were formatted
files_needing_formatting: usize
Number of files that needed formatting but were not modified (dry run)
total_files: usize
Total number of files processed
Implementations§
Source§impl FormattingStats
impl FormattingStats
Sourcepub fn merge(&mut self, other: &FormattingStats)
pub fn merge(&mut self, other: &FormattingStats)
Merge another FormattingStats into this one
Trait Implementations§
Source§impl Clone for FormattingStats
impl Clone for FormattingStats
Source§fn clone(&self) -> FormattingStats
fn clone(&self) -> FormattingStats
Returns a duplicate of the value. Read more
1.0.0 · 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 FormattingStats
impl Debug for FormattingStats
Source§impl Default for FormattingStats
impl Default for FormattingStats
Source§fn default() -> FormattingStats
fn default() -> FormattingStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FormattingStats
impl RefUnwindSafe for FormattingStats
impl Send for FormattingStats
impl Sync for FormattingStats
impl Unpin for FormattingStats
impl UnwindSafe for FormattingStats
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