Function ra_ap_hir_ty::param_idx
source · [−]pub fn param_idx(db: &dyn HirDatabase, id: TypeOrConstParamId) -> Option<usize>
Expand description
Return an index of a parameter in the generic type parameter list by it’s id.
pub fn param_idx(db: &dyn HirDatabase, id: TypeOrConstParamId) -> Option<usize>
Return an index of a parameter in the generic type parameter list by it’s id.