menu
Clone
import { Clone } from "destack:memory";
Mark a type as explicitly cloneable.
1export newtype interface Clone {2 clone(): ^this;3 cloneFrom(source: &'b readonly this): void;4}Members
clone(): ^thisClone this value.
cloneFrom(source: &'b readonly this): voidReplace this value with a clone of
source.