Clone

protocol Clone

A buffer-backed value whose clone is an O(1) refcount bump (copy-on-write). Conformance is legal only when every non-Copy field is itself Clone.

Methods

func clone() -> Self

Produces a logical copy, retaining shared backing storage when necessary.

View Source
func clone() -> Self