Skip to main content

interface_requirements

Function interface_requirements 

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

Flatten an interface and its instantiated parents into declaration-tagged method requirements. Cycles and repeated generic instantiations are handled here so registration, inference, and emission cannot disagree about the inherited signatures.