pub struct ConstantFolder;Expand description
Constant folder that applies algebraic simplifications to fixpoint.
This wraps StrengthReducer and applies it repeatedly until the expression
no longer changes, ensuring all nested constant folding opportunities are caught.
Implementations§
Auto Trait Implementations§
impl Freeze for ConstantFolder
impl RefUnwindSafe for ConstantFolder
impl Send for ConstantFolder
impl Sync for ConstantFolder
impl Unpin for ConstantFolder
impl UnsafeUnpin for ConstantFolder
impl UnwindSafe for ConstantFolder
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