pub struct ExpressionConstnessTracker { /* private fields */ }
Implementations§
Source§impl ExpressionConstnessTracker
impl ExpressionConstnessTracker
pub fn new() -> Self
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>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExpressionConstnessTracker
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