Formation of a hetero[3]rotaxane by a dynamic component-swapping strategy.