Struct naga::proc::ExpressionKindTracker
source · 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