pub struct ValidationLimits { /* private fields */ }Expand description
Structural ceilings checked during validation. Every ceiling is inclusive: a value equal to its limit is accepted.
Self::default holds the standard limits used by Program::validate
and the built-in profiles. A DatalogProfile owns its limits, and
Program::validate_for enforces them.
Implementations§
Source§impl ValidationLimits
impl ValidationLimits
Sourcepub const STANDARD_TRIPLE_TERM_NESTING: usize = 4
pub const STANDARD_TRIPLE_TERM_NESTING: usize = 4
Standard triple-term nesting depth.
Sourcepub const STANDARD_RULES: usize = 65_536
pub const STANDARD_RULES: usize = 65_536
Standard number of rules in one program.
Sourcepub const STANDARD_BODY_LITERALS: usize = 1_024
pub const STANDARD_BODY_LITERALS: usize = 1_024
Standard number of literals in one rule body, aggregate bodies included.
Sourcepub const STANDARD_SKOLEM_DEPTH: usize = 64
pub const STANDARD_SKOLEM_DEPTH: usize = 64
Standard depth of invented values, as measured by
WeakAcyclicity::skolem_depth.
Sourcepub const fn with_triple_term_nesting(self, limit: usize) -> Self
pub const fn with_triple_term_nesting(self, limit: usize) -> Self
Replace the triple-term nesting depth limit.
Sourcepub const fn with_rules(self, limit: usize) -> Self
pub const fn with_rules(self, limit: usize) -> Self
Replace the rule count limit.
Sourcepub const fn with_body_literals(self, limit: usize) -> Self
pub const fn with_body_literals(self, limit: usize) -> Self
Replace the per-rule body length limit.
Sourcepub const fn with_skolem_depth(self, limit: usize) -> Self
pub const fn with_skolem_depth(self, limit: usize) -> Self
Replace the invented-value depth limit.
Sourcepub const fn triple_term_nesting(&self) -> usize
pub const fn triple_term_nesting(&self) -> usize
Deepest accepted Term::TripleTerm nesting.
Sourcepub const fn body_literals(&self) -> usize
pub const fn body_literals(&self) -> usize
Most accepted literals in one rule, counting aggregate inner bodies.
Sourcepub const fn skolem_depth(&self) -> usize
pub const fn skolem_depth(&self) -> usize
Deepest accepted nesting of invented values.