pub struct RewriteStats {
pub rules_applied: HashMap<String, u64>,
pub total_rewrites: u64,
pub iterations: u32,
pub nodes_visited: u64,
pub fixed_point_reached: bool,
}Expand description
Accumulated statistics for a rewrite pass (or the full fixed-point loop).
Fields§
§rules_applied: HashMap<String, u64>How many times each named rule fired.
total_rewrites: u64Total number of individual rewrites across all rules and iterations.
iterations: u32Number of full-tree passes performed.
nodes_visited: u64Total expression nodes visited (across all passes).
fixed_point_reached: booltrue when the engine stopped because no rule fired (fixed point),
false when it stopped because max_iterations was reached.
Implementations§
Source§impl RewriteStats
impl RewriteStats
Trait Implementations§
Source§impl Clone for RewriteStats
impl Clone for RewriteStats
Source§fn clone(&self) -> RewriteStats
fn clone(&self) -> RewriteStats
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 RewriteStats
impl Debug for RewriteStats
Source§impl Default for RewriteStats
impl Default for RewriteStats
Source§fn default() -> RewriteStats
fn default() -> RewriteStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RewriteStats
impl RefUnwindSafe for RewriteStats
impl Send for RewriteStats
impl Sync for RewriteStats
impl Unpin for RewriteStats
impl UnsafeUnpin for RewriteStats
impl UnwindSafe for RewriteStats
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