struct InstantiateRuntimeFunctionPass<'a> {
elaborator: &'a mut Elaborator,
callee_name: &'a str,
template: &'a RuntimeFunctionTemplate,
type_bindings: &'a BTreeMap<String, Ty>,
meta_bindings: &'a BTreeMap<String, TemplateMetaBinding>,
specialization_key: &'a SpecializationKey,
variadic_pack_tys: &'a [Ty],
}Expand description
Instantiate one runtime template function specialization.
Input invariant: all specialization bindings correspond to specialization_key.
Output invariant: returned function name is registered in specialization/cache maps.
This pass performs specialization cache lookup, recursion guard handling, concrete function synthesis, signature registration, and body elaboration for one runtime template instance.
Pass name: elab.instantiate_runtime_function.
Fields§
§elaborator: &'a mut Elaborator§callee_name: &'a str§template: &'a RuntimeFunctionTemplate§type_bindings: &'a BTreeMap<String, Ty>§meta_bindings: &'a BTreeMap<String, TemplateMetaBinding>§specialization_key: &'a SpecializationKey§variadic_pack_tys: &'a [Ty]Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for InstantiateRuntimeFunctionPass<'a>
impl<'a> RefUnwindSafe for InstantiateRuntimeFunctionPass<'a>
impl<'a> Send for InstantiateRuntimeFunctionPass<'a>
impl<'a> Sync for InstantiateRuntimeFunctionPass<'a>
impl<'a> Unpin for InstantiateRuntimeFunctionPass<'a>
impl<'a> !UnwindSafe for InstantiateRuntimeFunctionPass<'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