miniscript::Node::Clone

Creates a deep copy of this node and all its subexpressions.

Synopsis

Declared in <script/miniscript.h>

Node<Key>
Clone() const;

Return Value

A newly constructed copy of this node tree.