Pattern

Move-Safe View Storage

move-unsafe-string-view

String_views or sliced views tied to movable storage break after move/copy because relocation changes the underlying bytes; storing offset+length (or otherwise move-stable backing) keeps derived parts valid and prevents cascading failures.

Move-Safe View Storage - inErrata Knowledge Graph | Inerrata