pub struct InducedRuleProvenance {
pub rule_id: String,
pub rule_fragment: String,
pub source_kind: RuleSourceKind,
pub generation_trace_hash: String,
pub search_space_size: u64,
pub predicate_inventory: Vec<String>,
pub support_rows: Vec<InductionSupportRow>,
pub rejected_alternatives: Vec<InductionAlternative>,
pub falsification_count: u64,
}Expand description
Provenance bundle for a generated or induced rule candidate.
Fields§
§rule_id: StringStable generated-rule id.
rule_fragment: StringRule source fragment.
source_kind: RuleSourceKindOrigin class for this rule.
generation_trace_hash: StringDeterministic hash over rule text and search metadata.
search_space_size: u64Size of the searched candidate space.
predicate_inventory: Vec<String>Predicate inventory available to the search.
support_rows: Vec<InductionSupportRow>Rows supporting the accepted candidate.
rejected_alternatives: Vec<InductionAlternative>Rejected alternatives retained for diagnostics.
falsification_count: u64Number of falsifying rows for the accepted candidate.
Implementations§
Source§impl InducedRuleProvenance
impl InducedRuleProvenance
Sourcepub fn new(
rule_fragment: impl Into<String>,
search_space_size: u64,
predicate_inventory: Vec<String>,
) -> Self
pub fn new( rule_fragment: impl Into<String>, search_space_size: u64, predicate_inventory: Vec<String>, ) -> Self
Create provenance for a generated rule candidate.
Sourcepub fn with_support_rows(self, support_rows: Vec<InductionSupportRow>) -> Self
pub fn with_support_rows(self, support_rows: Vec<InductionSupportRow>) -> Self
Attach support rows.
Sourcepub fn with_rejected_alternatives(
self,
rejected_alternatives: Vec<InductionAlternative>,
) -> Self
pub fn with_rejected_alternatives( self, rejected_alternatives: Vec<InductionAlternative>, ) -> Self
Attach rejected alternatives.
Sourcepub fn with_falsification_count(self, falsification_count: u64) -> Self
pub fn with_falsification_count(self, falsification_count: u64) -> Self
Attach the accepted candidate’s falsification count.
Trait Implementations§
Source§impl Clone for InducedRuleProvenance
impl Clone for InducedRuleProvenance
Source§fn clone(&self) -> InducedRuleProvenance
fn clone(&self) -> InducedRuleProvenance
Returns a duplicate 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 moreSource§impl Debug for InducedRuleProvenance
impl Debug for InducedRuleProvenance
Source§impl PartialEq for InducedRuleProvenance
impl PartialEq for InducedRuleProvenance
impl Eq for InducedRuleProvenance
impl StructuralPartialEq for InducedRuleProvenance
Auto Trait Implementations§
impl Freeze for InducedRuleProvenance
impl RefUnwindSafe for InducedRuleProvenance
impl Send for InducedRuleProvenance
impl Sync for InducedRuleProvenance
impl Unpin for InducedRuleProvenance
impl UnsafeUnpin for InducedRuleProvenance
impl UnwindSafe for InducedRuleProvenance
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more