pub struct LocalExpressionContext<'temp, 'out> {
local_table: &'temp FastHashMap<Handle<Local>, Declared<Typed<Handle<Expression>>>>,
function: &'out mut Function,
block: &'temp mut Block,
emitter: &'temp mut Emitter,
typifier: &'temp mut Typifier,
local_expression_kind_tracker: &'temp mut ExpressionKindTracker,
}
Fields§
§local_table: &'temp FastHashMap<Handle<Local>, Declared<Typed<Handle<Expression>>>>
A map from ast::Local
handles to the Naga expressions we’ve built for them.
This is always StatementContext::local_table
for the
enclosing statement; see that documentation for details.
function: &'out mut Function
§block: &'temp mut Block
§emitter: &'temp mut Emitter
§typifier: &'temp mut Typifier
§local_expression_kind_tracker: &'temp mut ExpressionKindTracker
Which Expression
s in self.naga_expressions
are const expressions, in
the WGSL sense.
See StatementContext::local_expression_kind_tracker
for details.
Auto Trait Implementations§
impl<'temp, 'out> Freeze for LocalExpressionContext<'temp, 'out>
impl<'temp, 'out> RefUnwindSafe for LocalExpressionContext<'temp, 'out>
impl<'temp, 'out> Send for LocalExpressionContext<'temp, 'out>
impl<'temp, 'out> Sync for LocalExpressionContext<'temp, 'out>
impl<'temp, 'out> Unpin for LocalExpressionContext<'temp, 'out>
impl<'temp, 'out> !UnwindSafe for LocalExpressionContext<'temp, 'out>
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