Add method to get instance instantiation arguments
This commit is contained in:
parent
92ad4b433a
commit
e0a4693294
3 changed files with 15 additions and 0 deletions
|
@ -125,6 +125,9 @@ pub trait Context {
|
|||
/// Get the instance type with generic substitutions applied and lifetimes erased.
|
||||
fn instance_ty(&self, instance: InstanceDef) -> Ty;
|
||||
|
||||
/// Get the instantiation types.
|
||||
fn instance_args(&self, def: InstanceDef) -> GenericArgs;
|
||||
|
||||
/// Get the instance.
|
||||
fn instance_def_id(&self, instance: InstanceDef) -> DefId;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue