struct BindTemplateCallArgsPass<'a> {
elaborator: &'a mut Elaborator,
callee_name: &'a str,
template: &'a RuntimeFunctionTemplate,
locals: &'a mut Vec<(String, Ty)>,
}Expand description
Bind runtime template call arguments into specialization inputs.
Input invariant: args belongs to one runtime template call.
Output invariant: returned binding contains a deterministic specialization key
for the same argument sequence.
This pass resolves type arguments, binds meta parameters, materializes variadic packs, and builds a stable specialization key used by runtime template instantiation cache lookup.
Pass name: elab.bind_template_call_args.
Fields§
§elaborator: &'a mut Elaborator§callee_name: &'a str§template: &'a RuntimeFunctionTemplate§locals: &'a mut Vec<(String, Ty)>Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for BindTemplateCallArgsPass<'a>
impl<'a> RefUnwindSafe for BindTemplateCallArgsPass<'a>
impl<'a> Send for BindTemplateCallArgsPass<'a>
impl<'a> Sync for BindTemplateCallArgsPass<'a>
impl<'a> Unpin for BindTemplateCallArgsPass<'a>
impl<'a> !UnwindSafe for BindTemplateCallArgsPass<'a>
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