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§fn clone(&self) -> StrengthReductionStats
fn clone(&self) -> StrengthReductionStats
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 StrengthReductionStats
impl Debug for StrengthReductionStats
Source§impl Default for StrengthReductionStats
impl Default for StrengthReductionStats
Source§fn default() -> StrengthReductionStats
fn default() -> StrengthReductionStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StrengthReductionStats
impl RefUnwindSafe for StrengthReductionStats
impl Send for StrengthReductionStats
impl Sync for StrengthReductionStats
impl Unpin 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