Skip to main content

Module codec

Module codec 

Source
Expand description

codec:intent: the domain codec for Intent values.

Like codec:scene, this codec round-trips Intent values only and fails closed outside its domain: it validates the Intent on the way in and out and serializes through the codec-neutral portable value form in sim-codec. A malformed Intent becomes a structured CodecError, never a panic. It is built on the shared DomainCodecLib scaffold and registers the Intent kind Shapes through with_shapes.

Structs§

IntentCodec
The Intent domain codec object.
IntentCodecLib
Library that registers the Intent kind Shapes and codec:intent.

Functions§

intent_codec_symbol
Stable codec symbol for the intent domain codec.