pub struct PredicateEntry {
pub arg_index: FnvHashMap<FirstArgKey, Vec<usize>>,
pub var_clause_indices: Vec<usize>,
pub all_clause_indices: Vec<usize>,
}Expand description
Entry for a single predicate (functor/arity). Supports two-tier indexing: functor/arity lookup, then first-argument hash.
Fields§
§arg_index: FnvHashMap<FirstArgKey, Vec<usize>>First-argument index: ground first arg -> clause indices
var_clause_indices: Vec<usize>Clause indices where the first arg is a variable (must always be included)
all_clause_indices: Vec<usize>All clause indices in source order (fallback)
Trait Implementations§
Source§impl Clone for PredicateEntry
impl Clone for PredicateEntry
Source§fn clone(&self) -> PredicateEntry
fn clone(&self) -> PredicateEntry
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 PredicateEntry
impl Debug for PredicateEntry
Source§impl<'de> Deserialize<'de> for PredicateEntry
impl<'de> Deserialize<'de> for PredicateEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PredicateEntry
impl RefUnwindSafe for PredicateEntry
impl Send for PredicateEntry
impl Sync for PredicateEntry
impl Unpin for PredicateEntry
impl UnsafeUnpin for PredicateEntry
impl UnwindSafe for PredicateEntry
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