mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Add fn index()
accessor for hir::Param
This commit is contained in:
parent
1afeea85ff
commit
bf141310f8
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue