Struct naga::proc::ExpressionKindTracker
source · pub struct ExpressionKindTracker {
inner: HandleVec<Expression, ExpressionKind>,
}
Fields§
§inner: HandleVec<Expression, ExpressionKind>
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
sourcepub fn is_impl_const(&self, h: Handle<Expression>) -> bool
pub fn is_impl_const(&self, h: Handle<Expression>) -> bool
Returns true
if naga can also evaluate expression as const
pub fn is_const_or_override(&self, h: Handle<Expression>) -> bool
fn type_of(&self, value: Handle<Expression>) -> ExpressionKind
pub fn from_arena(arena: &Arena<Expression>) -> Self
fn type_of_with_expr(&self, expr: &Expression) -> ExpressionKind
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