Allow access to the underlying `Results` from a `ResultsCursor`
This commit is contained in:
parent
a88dc37c54
commit
9e45e90596
|
@ -68,7 +68,12 @@ where
|
|||
self.body
|
||||
}
|
||||
|
||||
/// Returns the `Analysis` used to generate the underlying results.
|
||||
/// Returns the underlying `Results`.
|
||||
pub fn results(&self) -> &Results<'tcx, A> {
|
||||
&self.results.borrow()
|
||||
}
|
||||
|
||||
/// Returns the `Analysis` used to generate the underlying `Results`.
|
||||
pub fn analysis(&self) -> &A {
|
||||
&self.results.borrow().analysis
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue