pub struct ExpressionKindTracker { /* private fields */ }
Implementations§
Source§impl ExpressionKindTracker
impl ExpressionKindTracker
pub const 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 insert(&mut self, value: Handle<Expression>, expr_type: ExpressionKind)
pub fn is_const(&self, h: Handle<Expression>) -> bool
pub fn is_const_or_override(&self, h: Handle<Expression>) -> bool
pub fn from_arena(arena: &Arena<Expression>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExpressionKindTracker
impl RefUnwindSafe for ExpressionKindTracker
impl Send for ExpressionKindTracker
impl Sync for ExpressionKindTracker
impl Unpin for ExpressionKindTracker
impl UnwindSafe for ExpressionKindTracker
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