pub enum InferenceError {
ConflictingPredicateColumnType {
predicate: String,
column: usize,
first_rule_index: usize,
first_type: ScalarType,
second_rule_index: usize,
second_type: ScalarType,
},
}Expand description
Errors surfaced by infer_scc_predicate_schemas.
Variants§
ConflictingPredicateColumnType
Two rules contributing to the same head predicate disagree
on the type of the same column. The first rule that types
the column wins first_*; the rule that disagrees wins
second_*.
Fields
§
first_type: ScalarTypeType derived from the first rule’s body for the head variable at this column.
§
second_type: ScalarTypeType derived from the conflicting rule’s body for the head variable at this column.
Trait Implementations§
Source§impl Clone for InferenceError
impl Clone for InferenceError
Source§fn clone(&self) -> InferenceError
fn clone(&self) -> InferenceError
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 moreSource§impl Debug for InferenceError
impl Debug for InferenceError
Source§impl PartialEq for InferenceError
impl PartialEq for InferenceError
Source§fn eq(&self, other: &InferenceError) -> bool
fn eq(&self, other: &InferenceError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InferenceError
Auto Trait Implementations§
impl Freeze for InferenceError
impl RefUnwindSafe for InferenceError
impl Send for InferenceError
impl Sync for InferenceError
impl Unpin for InferenceError
impl UnsafeUnpin for InferenceError
impl UnwindSafe for InferenceError
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