type

Fields

Fields is the ordered list assigned to ridu.Collection.Fields, ridu.Global.Fields, or a nested field constructor. Populate it with Nodes from this package's constructors. Ridu snapshots the caller-owned slice during construction, editing, and config resolution.

Full signature

Methods

  • Fields.Edit()

    Edit applies checked changes to a detached draft and returns a new field list. Use it to refine a reusable graph without rebuilding it. The result is published only when the callback and graph validation succeed; on error, Edit returns an unchanged snapshot of the original fields.

  • Fields.Snapshot()

    Snapshot detaches the mutable slice and freezes pointer facade inputs.

  • Fields.Walk()

    Walk visits nodes in declaration order and crosses only explicit branches.

  • Fields.WithProvenance()

    WithProvenance marks every published node as passing through a transform.

Related guides