Skip to main content

parse_trait_fn_sig

Function parse_trait_fn_sig 

Source
fn parse_trait_fn_sig<'tcx>(
    tcx: TyCtxt<'tcx>,
    def_id: DefId,
) -> Option<(Vec<String>, Vec<Ty<'tcx>>)>
Expand description

Extract parameter names from a HIR trait method declaration and pair them with types from the function signature. Handles TraitFn::Required (names directly in the declaration) and TraitFn::Provided (names in the body).