Struct naga::back::spv::CachedExpressions
source · struct CachedExpressions {
ids: HandleVec<Expression, Word>,
}
Expand description
A map from evaluated Expression
s to their SPIR-V ids.
When we emit code to evaluate a given Expression
, we record the
SPIR-V id of its value here, under its Handle<Expression>
index.
A CachedExpressions
value can be indexed by a Handle<Expression>
value.
Fields§
§ids: HandleVec<Expression, Word>
Implementations§
Trait Implementations§
source§impl Default for CachedExpressions
impl Default for CachedExpressions
source§fn default() -> CachedExpressions
fn default() -> CachedExpressions
Returns the “default value” for a type. Read more
source§impl Index<Handle<Expression>> for CachedExpressions
impl Index<Handle<Expression>> for CachedExpressions
source§impl IndexMut<Handle<Expression>> for CachedExpressions
impl IndexMut<Handle<Expression>> for CachedExpressions
source§impl Recyclable for CachedExpressions
impl Recyclable for CachedExpressions
Auto Trait Implementations§
impl Freeze for CachedExpressions
impl RefUnwindSafe for CachedExpressions
impl Send for CachedExpressions
impl Sync for CachedExpressions
impl Unpin for CachedExpressions
impl UnwindSafe for CachedExpressions
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