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.