pub struct CleaningStats {
pub hidden_chars_removed: u64,
pub trailing_whitespace_removed: u64,
pub spaces_normalized: u64,
pub dashes_normalized: u64,
pub quotes_normalized: u64,
pub other_normalized: u64,
pub control_chars_removed: u64,
pub line_endings_normalized: u64,
pub non_keyboard_removed: u64,
pub non_keyboard_transliterated: u64,
pub emojis_dropped: u64,
pub bidi_controls_removed: u64,
}Expand description
Detailed statistics about cleaning operations.
Fields§
§trailing_whitespace_removed: u64§spaces_normalized: u64§dashes_normalized: u64§quotes_normalized: u64§other_normalized: u64§control_chars_removed: u64§line_endings_normalized: u64§non_keyboard_removed: u64§non_keyboard_transliterated: u64§emojis_dropped: u64§bidi_controls_removed: u64Implementations§
Source§impl CleaningStats
impl CleaningStats
Sourcepub fn accumulate(&mut self, other: &CleaningStats)
pub fn accumulate(&mut self, other: &CleaningStats)
Merge another stats snapshot into this one.
§Arguments
other: Additional counters to accumulate intoself.
Trait Implementations§
Source§impl Clone for CleaningStats
impl Clone for CleaningStats
Source§fn clone(&self) -> CleaningStats
fn clone(&self) -> CleaningStats
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 CleaningStats
impl Debug for CleaningStats
Source§impl Default for CleaningStats
impl Default for CleaningStats
Source§fn default() -> CleaningStats
fn default() -> CleaningStats
Returns the “default value” for a type. Read more
Source§impl PartialEq for CleaningStats
impl PartialEq for CleaningStats
Source§impl Serialize for CleaningStats
impl Serialize for CleaningStats
impl Eq for CleaningStats
impl StructuralPartialEq for CleaningStats
Auto Trait Implementations§
impl Freeze for CleaningStats
impl RefUnwindSafe for CleaningStats
impl Send for CleaningStats
impl Sync for CleaningStats
impl Unpin for CleaningStats
impl UnsafeUnpin for CleaningStats
impl UnwindSafe for CleaningStats
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