struct ModuleMap {
types: HandleMap<Type>,
constants: HandleMap<Constant>,
global_expressions: HandleMap<Expression>,
}
Fields§
§types: HandleMap<Type>
§constants: HandleMap<Constant>
§global_expressions: HandleMap<Expression>
Implementations§
source§impl ModuleMap
impl ModuleMap
sourcepub fn adjust_expression(
&self,
expr: &mut Expression,
operand_map: &HandleMap<Expression>,
)
pub fn adjust_expression( &self, expr: &mut Expression, operand_map: &HandleMap<Expression>, )
Fix up all handles in expr
.
Use the expression handle remappings in operand_map
, and all
other mappings from self
.
fn adjust_sample_level( &self, level: &mut SampleLevel, operand_map: &HandleMap<Expression>, )
fn adjust_image_query( &self, query: &mut ImageQuery, operand_map: &HandleMap<Expression>, )
source§impl ModuleMap
impl ModuleMap
fn adjust_special_types(&self, special: &mut SpecialTypes)
Trait Implementations§
source§impl From<ModuleTracer<'_>> for ModuleMap
impl From<ModuleTracer<'_>> for ModuleMap
source§fn from(used: ModuleTracer<'_>) -> Self
fn from(used: ModuleTracer<'_>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ModuleMap
impl RefUnwindSafe for ModuleMap
impl Send for ModuleMap
impl Sync for ModuleMap
impl Unpin for ModuleMap
impl UnwindSafe for ModuleMap
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