struct RegionVisitor<F> {
    outer_index: DebruijnIndex,
    callback: F,
}

Fields§

§outer_index: DebruijnIndex

The index of a binder just outside the things we have traversed. If we encounter a bound region bound by this binder or one outer to it, it appears free. Example:

ⓘ
      for<'a> fn(for<'b> fn(), T)
// ^          ^          ^     ^
// |          |          |     | here, would be shifted in 1
// |          |          | here, would be shifted in 2
// |          | here, would be `INNERMOST` shifted in by 1
// | here, initially, binder would be `INNERMOST`

You see that, initially, any bound value is free, because we’ve not traversed any binders. As we pass through a binder, we shift the outer_index by 1 to account for the new binder that encloses us.

§callback: F

Trait Implementations§

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.

Layout§

Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.