Struct AtomicPatternStatistics
pub struct AtomicPatternStatistics { /* private fields */ }Expand description
Atomic statistics for pattern matching
Implementations§
§impl AtomicPatternStatistics
impl AtomicPatternStatistics
pub fn new() -> AtomicPatternStatistics
pub fn new() -> AtomicPatternStatistics
Create new atomic pattern statistics
pub fn set_total_patterns(&self, count: usize)
pub fn set_total_patterns(&self, count: usize)
Set total patterns count
pub fn increment_matching_operations(&self)
pub fn increment_matching_operations(&self)
Increment matching operations
pub fn increment_successful_matches(&self)
pub fn increment_successful_matches(&self)
Increment successful matches
pub fn increment_failed_matches(&self)
pub fn increment_failed_matches(&self)
Increment failed matches
pub fn snapshot(&self) -> PatternStatisticsSnapshot
pub fn snapshot(&self) -> PatternStatisticsSnapshot
Get current statistics snapshot
pub fn reset(&self)
pub fn reset(&self)
Reset all statistics
Trait Implementations§
§impl Debug for AtomicPatternStatistics
impl Debug for AtomicPatternStatistics
§impl Default for AtomicPatternStatistics
impl Default for AtomicPatternStatistics
§fn default() -> AtomicPatternStatistics
fn default() -> AtomicPatternStatistics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for AtomicPatternStatistics
impl RefUnwindSafe for AtomicPatternStatistics
impl Send for AtomicPatternStatistics
impl Sync for AtomicPatternStatistics
impl Unpin for AtomicPatternStatistics
impl UnwindSafe for AtomicPatternStatistics
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