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§
- Encode
Options - The full set of options controlling an encode pass.
- WriteCx
- The mutable context passed to an encoder while it renders a form.
Enums§
- Canonical
Policy - Whether output is canonicalized or preserves the original input form.
- Constructor
Surface - How a constructed object is surfaced when encoded.
- Encode
Position - The output position an encoder is targeting.
- Object
Encoding - How an object presents itself to a codec for encoding.
- Read
Construct Encode Policy - Whether read-time construct forms may be emitted.
- Read
Eval Encode Policy - Whether read-eval output may be emitted.
Traits§
- Object
Encode - Contract: an object that can describe its own encoding.
- Read
Constructor - Contract: a read-time constructor that builds an object from read args.