pub struct FoldingStats {
pub operations_folded: usize,
pub operations_simplified: usize,
pub operations_eliminated: usize,
pub estimated_speedup: f64,
}Expand description
Statistics from constant folding transformation.
Fields§
§operations_folded: usizeNumber of operations folded
operations_simplified: usizeNumber of operations simplified (e.g., x * 1 → x)
operations_eliminated: usizeNumber of operations eliminated (e.g., x * 0 → 0)
estimated_speedup: f64Estimated speedup
Implementations§
Source§impl FoldingStats
impl FoldingStats
Sourcepub fn total_transformations(&self) -> usize
pub fn total_transformations(&self) -> usize
Total number of transformations.
Trait Implementations§
Source§impl Clone for FoldingStats
impl Clone for FoldingStats
Source§fn clone(&self) -> FoldingStats
fn clone(&self) -> FoldingStats
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 FoldingStats
impl Debug for FoldingStats
Source§impl<'de> Deserialize<'de> for FoldingStats
impl<'de> Deserialize<'de> for FoldingStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FoldingStats
impl PartialEq for FoldingStats
Source§impl Serialize for FoldingStats
impl Serialize for FoldingStats
impl StructuralPartialEq for FoldingStats
Auto Trait Implementations§
impl Freeze for FoldingStats
impl RefUnwindSafe for FoldingStats
impl Send for FoldingStats
impl Sync for FoldingStats
impl Unpin for FoldingStats
impl UnwindSafe for FoldingStats
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