pub struct ReadingConstantFold<'lt>(pub &'lt Mir);Tuple Fields§
§0: &'lt MirTrait Implementations§
Source§impl<'lt> ConstantFolder for ReadingConstantFold<'lt>
impl<'lt> ConstantFolder for ReadingConstantFold<'lt>
fn resolve_to_string_subexpressions( &mut self, _dst: StringExpressionId, _newval: StringExpressionId, )
fn resolve_to_int_subexpressions( &mut self, _dst: IntegerExpressionId, _newval: IntegerExpressionId, )
fn resolve_to_real_subexpressions( &mut self, _dst: RealExpressionId, _newval: RealExpressionId, )
fn mir(&self) -> &Mir
fn real_constant_fold( &mut self, resolver: &mut impl ConstantResolver, expr: RealExpressionId, ) -> Option<f64>
fn int_constant_fold( &mut self, resolver: &mut impl ConstantResolver, expr: IntegerExpressionId, ) -> Option<i64>
fn string_constant_fold( &mut self, resolver: &mut impl ConstantResolver, expr: StringExpressionId, ) -> Option<StringLiteral>
Auto Trait Implementations§
impl<'lt> Freeze for ReadingConstantFold<'lt>
impl<'lt> RefUnwindSafe for ReadingConstantFold<'lt>
impl<'lt> !Send for ReadingConstantFold<'lt>
impl<'lt> !Sync for ReadingConstantFold<'lt>
impl<'lt> Unpin for ReadingConstantFold<'lt>
impl<'lt> UnwindSafe for ReadingConstantFold<'lt>
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