function

Snapshot

Snapshot captures even pointer-to-facade inputs by value. Invalid nil nodes become diagnostic definitions, so composition never panics on caller input.

Arguments

ArgumentTypeDescription
nNodeThe n value.

Returns

The declared result.

View

Full signature

Related types

  • Node

    Node is any field definition that can be placed in Fields. Authors normally create nodes with constructors such as Text, Select, Group, or Array and use their concrete fluent methods before adding them to a field list. The interface is sealed so Ridu can snapshot every supported field safely.

  • View

    View is a read-only snapshot of a canonical immutable node. Its readers detach mutable values; author fields through their concrete fluent facades.