Expand description
Based on a set of rules, validate a token stream and collect the tokens by type.
See the “rules” module for definitions of keywords types and per-keyword rules.
The key types in this module are SectionRules, which explains how to validate and partition a stream of Item, and Section, which contains a validated set of Item, ready to be interpreted.
§Example
(This is an internal API, so see the routerdesc.rs source for an example of use.)
Structs§
- Section
- A Section is the result of sorting a document’s entries by keyword.
- Section
Rules 🔒 - Describe the rules for one section of a document.
- Section
Rules 🔒Builder - A builder for a set of section rules.
- TokVal 🔒
- The entry or entries for a particular keyword within a document.