pub struct RewriteReport {
pub rules: Vec<RewriteRuleStat>,
pub iterations: usize,
}Expand description
Accumulates statistics across an entire rewrite pass.
Fields§
§rules: Vec<RewriteRuleStat>Per-rule execution counts for rules that were attempted at least once.
iterations: usizeThe number of fixed-point iterations the Rewrite phase completed.
Implementations§
Source§impl RewriteReport
impl RewriteReport
pub fn mark_rule_applied(&mut self, key: RuleKey)
pub fn mark_rule_skipped(&mut self, key: RuleKey)
pub fn record_iteration(&mut self, iterations: usize)
Trait Implementations§
Source§impl Clone for RewriteReport
impl Clone for RewriteReport
Source§fn clone(&self) -> RewriteReport
fn clone(&self) -> RewriteReport
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 RewriteReport
impl Debug for RewriteReport
Source§impl Default for RewriteReport
impl Default for RewriteReport
Source§fn default() -> RewriteReport
fn default() -> RewriteReport
Returns the “default value” for a type. Read more
impl Eq for RewriteReport
Source§impl PartialEq for RewriteReport
impl PartialEq for RewriteReport
Source§fn eq(&self, other: &RewriteReport) -> bool
fn eq(&self, other: &RewriteReport) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RewriteReport
Auto Trait Implementations§
impl Freeze for RewriteReport
impl RefUnwindSafe for RewriteReport
impl Send for RewriteReport
impl Sync for RewriteReport
impl Unpin for RewriteReport
impl UnsafeUnpin for RewriteReport
impl UnwindSafe for RewriteReport
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.