Module encode

Module encode 

Source
Available on crate feature encode only.
Expand description

Support for encoding the network document meta-format

Implements writing documents according to dir-spec.txt. section 1.2 and 1.3.

This facility processes output that complies with the meta-document format, (dir-spec.txt section 1.2) - unless raw methods are called with improper input.

However, no checks are done on keyword presence/absence, multiplicity, or ordering, so the output may not necessarily conform to the format of the particular intended document. It is the caller’s responsibility to call .item() in the right order, with the right keywords and arguments.

Structs§

Cursor
Position within a (perhaps partially-) built document
ItemEncoder
Encoder for an individual item within a being-built document
NetdocEncoder
Encoder, representing a partially-built document.

Traits§

ItemArgument
Types that can be added as argument(s) to item keyword lines
NetdocBuilder
Builders for network documents.