File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
book/src/types/operations Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -62,8 +62,14 @@ Each callback in the [`Folder`] trait takes a `binders` argument. This indicates
62
62
the number of binders that we have traversed during folding, which is relevant for De Bruijn indices.
63
63
So e.g. a bound variable with depth 1, if invoked with a ` binders ` value of 1, indicates something that was bound to something external to the fold.
64
64
65
- XXX explain with examples and in more detail
66
-
65
+ For example, consider:
66
+
67
+ ``` rust,ignore
68
+ Foo<'a>: for<'b> Bar<'b>
69
+ ```
70
+
71
+ In this case, ` Foo<'a> ` gets visited with depth 0 and ` Bar<'b> ` gets visited with depth 1.
72
+
67
73
## The ` Fold::Result ` associated type
68
74
69
75
The ` Fold ` trait defines a [ ` Result ` ] associated type, indicating the
You can’t perform that action at this time.
0 commit comments