Skip to main content

build_substitution_map

Function build_substitution_map 

Source
pub fn build_substitution_map(
    generics: &[Generic],
    type_args: &[Type],
) -> SubstitutionMap
Expand description

Build a substitution map from a list of generics and their type arguments, pairing each generic’s name with the type at the same position.