Struct

core::mem::Link!

source
forall 'f, 'r.
struct Link! { ... }

The tie between a part of a split region and the region it came from.

Link!['f,'r] names BOTH brands: the fresh child brand 'f a part was minted under, and the parent brand 'r it was split from. If Link! named only the parent, a caller could build a fake part (any Region![F,'f2] it already owns, paired with a Link!['r] naming the real parent) and feed it to merge in place of a real one, smuggling access to memory that was never part of the split. Naming the child too means a Link! is only ever produced alongside the exact Region! split made it for (split builds it from the fresh brand make_split_part returns with that region), so a parent brand cannot be paired with an arbitrary region.