pub struct ErasedConstFolder {
pub folds: u64,
}Expand description
Constant folding for erased arithmetic expressions.
Fields§
§folds: u64Implementations§
Source§impl ErasedConstFolder
impl ErasedConstFolder
Sourcepub fn fold_add(&mut self, expr: ErasedExprExt) -> ErasedExprExt
pub fn fold_add(&mut self, expr: ErasedExprExt) -> ErasedExprExt
Try to constant-fold an application of a built-in operator.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErasedConstFolder
impl RefUnwindSafe for ErasedConstFolder
impl Send for ErasedConstFolder
impl Sync for ErasedConstFolder
impl Unpin for ErasedConstFolder
impl UnsafeUnpin for ErasedConstFolder
impl UnwindSafe for ErasedConstFolder
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