pub struct ExpressionConstnessTracker { /* private fields */ }
Implementations§
source§impl ExpressionConstnessTracker
impl ExpressionConstnessTracker
pub fn new() -> ExpressionConstnessTracker
sourcepub fn force_non_const(&mut self, value: Handle<Expression>)
pub fn force_non_const(&mut self, value: Handle<Expression>)
Forces the the expression to not be const
pub fn is_const(&self, value: Handle<Expression>) -> bool
pub fn from_arena(arena: &Arena<Expression>) -> ExpressionConstnessTracker
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ExpressionConstnessTracker
impl Send for ExpressionConstnessTracker
impl Sync for ExpressionConstnessTracker
impl Unpin for ExpressionConstnessTracker
impl UnwindSafe for ExpressionConstnessTracker
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