mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
Add fn index()
accessor for hir::Param
This commit is contained in:
parent
1afeea85ff
commit
bf141310f8
@ -2112,6 +2112,10 @@ impl Param {
|
||||
self.func
|
||||
}
|
||||
|
||||
pub fn index(&self) -> usize {
|
||||
self.idx
|
||||
}
|
||||
|
||||
pub fn ty(&self) -> &Type {
|
||||
&self.ty
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user