Copy

protocol Copy

A value that duplicates freely: using it never moves it. Scalars conform intrinsically; a user type may conform when every field is Copy.

Methods

func clone() -> Self

Produces another independent value using the type's trivial copy semantics.

View Source
func clone() -> Self