1
Fork 0

Add method to get instance instantiation arguments

This commit is contained in:
Celina G. Val 2023-12-19 14:08:48 -08:00
parent 92ad4b433a
commit e0a4693294
3 changed files with 15 additions and 0 deletions

View file

@ -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;