pub struct PatternRewriteStats {
pub patterns_matched: usize,
pub rewrites_applied: usize,
pub nodes_before: usize,
pub nodes_after: usize,
pub nodes_eliminated: usize,
}Expand description
Statistics about pattern matching and rewriting
Fields§
§patterns_matched: usizeNumber of patterns matched
rewrites_applied: usizeNumber of rewrites applied
nodes_before: usizeNumber of nodes before rewriting
nodes_after: usizeNumber of nodes after rewriting
nodes_eliminated: usizeNodes eliminated by rewriting
Implementations§
Source§impl RewriteStats
impl RewriteStats
Sourcepub fn reduction_percentage(&self) -> f64
pub fn reduction_percentage(&self) -> f64
Calculate reduction percentage
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 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