Struct boreal::compiler::CompilerParams
source · pub struct CompilerParams { /* private fields */ }Expand description
Parameters used during compilation.
Implementations§
source§impl CompilerParams
impl CompilerParams
sourcepub fn max_condition_depth(self, max_condition_depth: u32) -> Self
pub fn max_condition_depth(self, max_condition_depth: u32) -> Self
Maximum depth in a rule’s condition AST.
This is a defensive limit to prevent the compilation or evaluation of the rule to trigger a stack overflow.
This limit should only be reached in rules written to try to trigger a stack overflow. However, should this limit be too low for real rules, it can be raised.
Default value is 40.
sourcepub fn fail_on_warnings(self, fail_on_warnings: bool) -> Self
pub fn fail_on_warnings(self, fail_on_warnings: bool) -> Self
Report all warnings as errors.
If set, all warnings are returned as errors, aborting adding rules to the compiler.
Please note that new releases may introduce new warnings. Enabling this flag can thus break existing rules outside of semantic versioning, although new warnings will be reported on every new releases.
Default value is false.
Trait Implementations§
source§impl Clone for CompilerParams
impl Clone for CompilerParams
source§fn clone(&self) -> CompilerParams
fn clone(&self) -> CompilerParams
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more