Add fn index() accessor for hir::Param

This commit is contained in:
Vincent Esche 2024-03-05 16:02:22 +01:00
parent 1afeea85ff
commit bf141310f8

View File

@ -2112,6 +2112,10 @@ impl Param {
self.func
}
pub fn index(&self) -> usize {
self.idx
}
pub fn ty(&self) -> &Type {
&self.ty
}