Function clone [src]

Returns a Managed with the same value. The returned Managed is a deep copy and can be modified separately from the original, and its resources are managed separately from the original.

Prototype

pub fn clone(other: Managed) !Managed

Parameters

other: Managed

Source

pub fn clone(other: Managed) !Managed { return other.cloneWithDifferentAllocator(other.allocator); }