MCPcopy Create free account
hub / github.com/cogentcore/core / CopyFieldsFrom

Method CopyFieldsFrom

tree/node.go:69–69  ·  view source on GitHub ↗

CopyFieldsFrom copies the fields of the node from the given node. By default, it is [NodeBase.CopyFieldsFrom], which automatically does a deep copy of all of the fields of the node that do not a have a `copier:"-"` struct tag. Node types should only implement a custom CopyFieldsFrom method when they

(from Node)

Source from the content-addressed store, hash-verified

67 // [cogentcore.org/core/core.WidgetBase.CopyFieldsFrom] for an example of a
68 // custom CopyFieldsFrom method.
69 CopyFieldsFrom(from Node)
70
71 // This is necessary for tree planning to work.
72 plan.Namer

Callers 4

CopyFieldsFromMethod · 0.65
CopyFieldsFromMethod · 0.65
copyFromFunction · 0.65

Calls

no outgoing calls

Tested by 1