#[non_exhaustive]pub struct SaturateConfig {
pub fragment: Fragment,
pub iterations: u8,
pub matches_per_rule_iter: u32,
pub admission: Admission,
pub unsupported: UnsupportedPolicy,
pub max_root_nodes: u32,
}Expand description
Search configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.fragment: FragmentThe accepted fragment.
iterations: u8The most iterations per root.
matches_per_rule_iter: u32The most matches applied per identity and direction per iteration.
admission: AdmissionPer-root caps checked before anything is built.
unsupported: UnsupportedPolicyOutside subterms.
max_root_nodes: u32The most distinct nodes a root may have.
Implementations§
Source§impl SaturateConfig
impl SaturateConfig
Sourcepub fn with_fragment(self, value: Fragment) -> Self
pub fn with_fragment(self, value: Fragment) -> Self
Sets fragment.
Sourcepub fn with_iterations(self, value: u8) -> Self
pub fn with_iterations(self, value: u8) -> Self
Sets iterations.
Sourcepub fn with_matches_per_rule_iter(self, value: u32) -> Self
pub fn with_matches_per_rule_iter(self, value: u32) -> Self
Sets matches_per_rule_iter.
Sourcepub fn with_admission(self, value: Admission) -> Self
pub fn with_admission(self, value: Admission) -> Self
Sets admission.
Sourcepub fn with_unsupported(self, value: UnsupportedPolicy) -> Self
pub fn with_unsupported(self, value: UnsupportedPolicy) -> Self
Sets unsupported.
Sourcepub fn with_max_root_nodes(self, value: u32) -> Self
pub fn with_max_root_nodes(self, value: u32) -> Self
Sets max_root_nodes.
Source§impl SaturateConfig
impl SaturateConfig
Sourcepub fn exploratory() -> SaturateConfig
pub fn exploratory() -> SaturateConfig
A larger search: 16 iterations of at most 64 new matches per equation and direction.
Pair it with a larger budget (SearchRun::per_call). Like every configuration, it
publishes only searches that saturate: an iteration cap, a budget or a deadline
withholds the batch. Associativity and distributivity together rarely saturate, so
choose the equation groups per search (Saturator::new).
Trait Implementations§
Source§impl Clone for SaturateConfig
impl Clone for SaturateConfig
impl Copy for SaturateConfig
Source§impl Debug for SaturateConfig
impl Debug for SaturateConfig
Source§impl Default for SaturateConfig
impl Default for SaturateConfig
impl Eq for SaturateConfig
Source§impl Hash for SaturateConfig
impl Hash for SaturateConfig
Source§impl PartialEq for SaturateConfig
impl PartialEq for SaturateConfig
impl StructuralPartialEq for SaturateConfig
Auto Trait Implementations§
impl Forget for SaturateConfig
impl Freeze for SaturateConfig
impl Move for SaturateConfig
impl RefUnwindSafe for SaturateConfig
impl Send for SaturateConfig
impl Sync for SaturateConfig
impl Unpin for SaturateConfig
impl UnsafeUnpin for SaturateConfig
impl UnwindSafe for SaturateConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more