pub struct ParseOptions {
pub resilient: bool,
pub enable_includes: bool,
pub resolve_includes: bool,
pub allow_parent_escapes: bool,
pub include_loader: Option<Arc<dyn Fn(&str) -> Result<String, String>>>,
}Expand description
Options controlling parsing and healing behavior.
Fields§
§resilient: boolWhen true, medium-confidence repairs (0.70–0.94) are applied and reported as warnings. When false (strict, the default), they are declined and the underlying syntax diagnostic stands.
enable_includes: boolWhen true, include statements are loaded from the filesystem
(spec §2.7). False by default: string-based parsing stays hermetic
(the fuzz harness depends on this). parse_file enables it.
resolve_includes: boolWhen true (default), recorded includes are resolved and merged.
active-fmt disables it so formatting preserves include statements
alongside local keys instead of a composed tree.
allow_parent_escapes: boolWhen true, include paths may be absolute or escape the including
directory via ... False by default (E015 otherwise).
include_loader: Option<Arc<dyn Fn(&str) -> Result<String, String>>>Host-provided source resolver consulted INSTEAD of the filesystem
read when set (F-016). None preserves all legacy behavior.
Implementations§
Source§impl ParseOptions
impl ParseOptions
Sourcepub const fn strict() -> ParseOptions
pub const fn strict() -> ParseOptions
Strict defaults (const-compatible for test constants).
Sourcepub const fn resilient_mode() -> ParseOptions
pub const fn resilient_mode() -> ParseOptions
Resilient-mode defaults (const-compatible for test constants).
Trait Implementations§
Source§impl Clone for ParseOptions
impl Clone for ParseOptions
Source§fn clone(&self) -> ParseOptions
fn clone(&self) -> ParseOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more