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.