DeepCopyable
public protocol DeepCopyable
An object that can create new instances that are deep copies of itself
-
Create a deep copy of the object, returning a new instance Unlike new instance, a new copy should always be returned
Declaration
Swift
func deepCopy() -> Self