Skip to main content

interface_instances

Function interface_instances 

Source
pub fn interface_instances<'d, F>(
    interface_ty: &Type,
    lookup: F,
) -> Vec<InterfaceInstance>
where F: Copy + Fn(&str) -> Option<&'d Definition>,
Expand description

Instantiate an interface and its complete parent hierarchy exactly once. Package-qualified structural identity prevents same-named interfaces from collapsing, while the active path guard terminates malformed cycles.