pub struct RewriteRuleStat {
pub key: RuleKey,
pub applied_count: usize,
pub skipped_count: usize,
}Expand description
Tracks how often a specific rule changed the AST or skipped after a scheduling target match.
Fields§
§key: RuleKeyThe identity of the rule.
applied_count: usizeThe total number of times this rule fired.
skipped_count: usizeThe total number of times this rule’s scheduling target matched but apply() returned Skipped.
Trait Implementations§
Source§impl Clone for RewriteRuleStat
impl Clone for RewriteRuleStat
Source§fn clone(&self) -> RewriteRuleStat
fn clone(&self) -> RewriteRuleStat
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 RewriteRuleStat
impl Debug for RewriteRuleStat
impl Eq for RewriteRuleStat
Source§impl PartialEq for RewriteRuleStat
impl PartialEq for RewriteRuleStat
Source§fn eq(&self, other: &RewriteRuleStat) -> bool
fn eq(&self, other: &RewriteRuleStat) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RewriteRuleStat
Auto Trait Implementations§
impl Freeze for RewriteRuleStat
impl RefUnwindSafe for RewriteRuleStat
impl Send for RewriteRuleStat
impl Sync for RewriteRuleStat
impl Unpin for RewriteRuleStat
impl UnsafeUnpin for RewriteRuleStat
impl UnwindSafe for RewriteRuleStat
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.