pub struct RuleOptions {
pub finish: bool,
pub maxmul: usize,
pub include: String,
pub exclude: String,
pub start: String,
pub history: Option<usize>,
}Fields§
§finish: boolThe grammar’s end-of-source switch (default true). jsonic’s
@finish reads it: an unterminated structure is closed at the end
of the source when it is true and refused with end_of_source
when it is false. The engine stores, merges and serializes it for
the grammar and does not read it: trailing content is an error
either way.
maxmul: usize§include: String§exclude: String§start: String§history: Option<usize>How many predecessor snapshots a rule can reach through prev:
the prev_rule chain a replace or a push links is cut past this
many links, so a sequence’s iterations are not all kept until its
container closes. The default is DEFAULT_RULE_HISTORY; None
keeps every link, which costs memory in proportion to the length
of the document (doc/rule-history-bound.md). Read as 1 to
MAX_RULE_HISTORY: Some(0) as 1, a larger value as the cap.