Skip to main content

Module encode

Module encode 

Source
Expand description

The encode contract: turning objects back into forms at a known position.

The kernel defines encode options, output positions, and the object-encoding contract; concrete codecs that render forms live in library crates.

Structs§

EncodeOptions
The full set of options controlling an encode pass.
WriteCx
The mutable context passed to an encoder while it renders a form.

Enums§

CanonicalPolicy
Whether output is canonicalized or preserves the original input form.
ConstructorSurface
How a constructed object is surfaced when encoded.
EncodePosition
The output position an encoder is targeting.
ObjectEncoding
How an object presents itself to a codec for encoding.
ReadConstructEncodePolicy
Whether read-time construct forms may be emitted.
ReadEvalEncodePolicy
Whether read-eval output may be emitted.

Traits§

ObjectEncode
Contract: an object that can describe its own encoding.
ReadConstructor
Contract: a read-time constructor that builds an object from read args.