copy-on-write

Also known as: clone-on-write, copy on write, Cow

Copy-on-write shares data until someone needs to modify it and only then makes a private copy. Rust's Cow type implements this pattern.

See the standard library documentation.