pub struct StrengthReductionStats {
pub power_reductions: usize,
pub operations_eliminated: usize,
pub special_function_optimizations: usize,
pub total_processed: usize,
}Expand description
Statistics from strength reduction optimization.
Fields§
§power_reductions: usizeNumber of power operations reduced (e.g., x^2 → x*x)
operations_eliminated: usizeNumber of operations eliminated (e.g., x^0 → 1)
special_function_optimizations: usizeNumber of special function optimizations (e.g., exp(0) → 1)
total_processed: usizeTotal expressions processed
Implementations§
Source§impl StrengthReductionStats
impl StrengthReductionStats
Sourcepub fn total_optimizations(&self) -> usize
pub fn total_optimizations(&self) -> usize
Get total number of optimizations applied.
Trait Implementations§
Source§impl Clone for StrengthReductionStats
impl Clone for StrengthReductionStats
Source§impl Debug for StrengthReductionStats
impl Debug for StrengthReductionStats
Auto Trait Implementations§
impl Freeze for StrengthReductionStats
impl RefUnwindSafe for StrengthReductionStats
impl Send for StrengthReductionStats
impl Sync for StrengthReductionStats
impl Unpin for StrengthReductionStats
impl UnsafeUnpin for StrengthReductionStats
impl UnwindSafe for StrengthReductionStats
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