pub enum CompileError {
Show 13 variants
Schema(SchemaError),
AggregateOutsideHead {
rule_id: RuleId,
},
AggregateVariableInGroupKey {
rule_id: RuleId,
variable: String,
},
UnsupportedAggregateInputType {
rule_id: RuleId,
function: AggregateFunction,
variable: String,
input_type: ValueType,
},
AggregateOutputTypeMismatch {
rule_id: RuleId,
function: AggregateFunction,
expected: ValueType,
actual: ValueType,
},
RuleVariableTypeConflict {
rule_id: RuleId,
variable: String,
first: ValueType,
second: ValueType,
},
RuleVariableTypeUnknown {
rule_id: RuleId,
variable: String,
},
RuleTermTypeMismatch {
rule_id: RuleId,
predicate: String,
position: usize,
expected: ValueType,
actual: ValueType,
},
RecursiveAggregation {
rule_id: RuleId,
predicate: String,
},
IncompatibleExtensionalBinding {
predicate: String,
attribute: String,
expected_fields: Vec<ValueType>,
actual_fields: Vec<ValueType>,
},
FactTypeMismatch {
predicate: String,
expected: Vec<ValueType>,
actual: Vec<ValueType>,
},
UnsafeVariable {
rule_id: RuleId,
variable: String,
},
UnstratifiedNegation {
depender: String,
dependency: String,
},
}Variants§
Schema(SchemaError)
AggregateOutsideHead
Fields
§
rule_id: RuleIdAggregateVariableInGroupKey
UnsupportedAggregateInputType
AggregateOutputTypeMismatch
RuleVariableTypeConflict
RuleVariableTypeUnknown
RuleTermTypeMismatch
RecursiveAggregation
IncompatibleExtensionalBinding
Fields
FactTypeMismatch
UnsafeVariable
UnstratifiedNegation
Trait Implementations§
Source§impl Debug for CompileError
impl Debug for CompileError
Source§impl Display for CompileError
impl Display for CompileError
Source§impl Error for CompileError
impl Error for CompileError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for CompileError
impl RefUnwindSafe for CompileError
impl Send for CompileError
impl Sync for CompileError
impl Unpin for CompileError
impl UnwindSafe for CompileError
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