pub struct KeptNaryPattern {
pub pattern_idx: usize,
pub positives_covered: u32,
pub negatives_covered: u32,
pub local_rank: u32,
pub next_positives_covered: u32,
pub next_negatives_covered: u32,
pub tie_class_size: u32,
}Expand description
One kept n-ary pattern after deterministic reduction.
pattern_idx points back into the scored pattern batch (canonical
enumeration order), so the caller can recover the full
crate::nary::NaryRulePattern and its per-atom relation identities.
Fields§
§pattern_idx: usize§positives_covered: u32§negatives_covered: u32§local_rank: u32§next_positives_covered: u32§next_negatives_covered: u32§tie_class_size: u32Trait Implementations§
Source§impl Clone for KeptNaryPattern
impl Clone for KeptNaryPattern
Source§fn clone(&self) -> KeptNaryPattern
fn clone(&self) -> KeptNaryPattern
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for KeptNaryPattern
Source§impl Debug for KeptNaryPattern
impl Debug for KeptNaryPattern
impl Eq for KeptNaryPattern
Source§impl PartialEq for KeptNaryPattern
impl PartialEq for KeptNaryPattern
Source§fn eq(&self, other: &KeptNaryPattern) -> bool
fn eq(&self, other: &KeptNaryPattern) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for KeptNaryPattern
Auto Trait Implementations§
impl Freeze for KeptNaryPattern
impl RefUnwindSafe for KeptNaryPattern
impl Send for KeptNaryPattern
impl Sync for KeptNaryPattern
impl Unpin for KeptNaryPattern
impl UnsafeUnpin for KeptNaryPattern
impl UnwindSafe for KeptNaryPattern
Blanket Implementations§
impl<T> Allocation for T
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