Add fn index()
accessor for hir::Param
This commit is contained in:
parent
1afeea85ff
commit
bf141310f8
@ -2112,6 +2112,10 @@ impl Param {
|
|||||||
self.func
|
self.func
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn index(&self) -> usize {
|
||||||
|
self.idx
|
||||||
|
}
|
||||||
|
|
||||||
pub fn ty(&self) -> &Type {
|
pub fn ty(&self) -> &Type {
|
||||||
&self.ty
|
&self.ty
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user