Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Borrow-Checker Interface

The PCG Analysis requires an implementation of the borrow-checker interface providing the following:

  • A predicate , which holds iff the borrow extents in PCG node are all in scope at MIR location
  • A predicate , which holds iff place is directly blocked at MIR location
  • A predicate which holds iff mutating at would cause to be dead
  • A predicate which holds iff must outlive at
  • A function which returns the set of borrows that would be invalidated if was modified at
  • A function which returns the set of two-phase borrows that are activated at .