pub struct Options {Show 33 fields
pub safe: SafeOptions,
pub fixed: FixedOptions,
pub space: SpaceOptions,
pub text: TextOptions,
pub number: NumberOptions,
pub string: StringOptions,
pub line: LineOptions,
pub comment: CommentOptions,
pub value: ValueOptions,
pub ender: Vec<String>,
pub map: MapOptions,
pub list: ListOptions,
pub info: InfoOptions,
pub lex: LexOptions,
pub rewind: RewindOptions,
pub rule: RuleOptions,
pub result: ResultOptions,
pub parse: ParseOptions,
pub parser: ParserOptions,
pub debug: DebugOptions,
pub plugin: IndexMap<String, Value>,
pub token_set: HashMap<String, Vec<Tin>>,
pub tokens: IndexMap<String, Tin>,
pub match_lex: bool,
pub match_check: Option<LexCheck>,
pub match_tokens: IndexMap<String, MatchToken>,
pub match_values: IndexMap<String, MatchValue>,
pub error: HashMap<String, String>,
pub hint: HashMap<String, String>,
pub errmsg: ErrMsgOptions,
pub color: ColorOptions,
pub config_modify: IndexMap<String, ConfigModifier>,
pub tag: String,
}Fields§
§safe: SafeOptions§fixed: FixedOptions§space: SpaceOptions§text: TextOptions§number: NumberOptions§string: StringOptions§line: LineOptions§comment: CommentOptions§value: ValueOptions§ender: Vec<String>§map: MapOptions§list: ListOptions§info: InfoOptions§lex: LexOptions§rewind: RewindOptions§rule: RuleOptions§result: ResultOptions§parse: ParseOptions§parser: ParserOptions§debug: DebugOptions§plugin: IndexMap<String, Value>Per-plugin accumulated option bags (options.plugin).
token_set: HashMap<String, Vec<Tin>>§tokens: IndexMap<String, Tin>Named token identities without an attached built-in, fixed, or match producer. Serialized rule slots allocate these on first reference.
match_lex: boolEnable serialized/custom regexp token matching (options.match.lex).
match_check: Option<LexCheck>§match_tokens: IndexMap<String, MatchToken>§match_values: IndexMap<String, MatchValue>§error: HashMap<String, String>§hint: HashMap<String, String>§errmsg: ErrMsgOptions§color: ColorOptions§config_modify: IndexMap<String, ConfigModifier>§tag: StringImplementations§
Source§impl Options
impl Options
Sourcepub fn refresh_configuration(&mut self) -> Result<(), String>
pub fn refresh_configuration(&mut self) -> Result<(), String>
Rebuild the resolved configuration callbacks from this option tree.
Config modifiers run before matcher factories, matching canonical
configure: factories must observe the modifier’s final values.
Sourcepub fn refresh_lex_matchers(&mut self) -> Result<(), String>
pub fn refresh_lex_matchers(&mut self) -> Result<(), String>
Rebuild setup-time lexer matchers from the fully resolved option tree. Factories run once per configuration/derivation, not once per parse.
Sourcepub fn empty() -> Self
pub fn empty() -> Self
Baseline for Tabnas::empty: no standard token producers or token
sets. Structural and diagnostic fields retain typed values so plugins
can opt individual facilities back in without handling missing data.