is a question

This commit is contained in:
Tshepang Mbambo 2025-05-10 12:35:50 +02:00
parent 39c758c3af
commit e2171b97e7
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ In [a previous chapter], we discussed instantiating binders.
This involves looking at everything inside of a `Early(Binder)` This involves looking at everything inside of a `Early(Binder)`
to find any usages of the bound vars in order to replace them. to find any usages of the bound vars in order to replace them.
Binders can wrap an arbitrary Rust type `T`, not just a `Ty`. Binders can wrap an arbitrary Rust type `T`, not just a `Ty`.
So, how do we implement the `instantiate` methods on the `Early/Binder` types. So, how do we implement the `instantiate` methods on the `Early/Binder` types?
The answer is a couple of traits: The answer is a couple of traits:
[`TypeFoldable`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/fold/trait.TypeFoldable.html) [`TypeFoldable`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/fold/trait.TypeFoldable.html)