pub enum ProfileCheckError {
InvalidProgram(ProgramValidationError),
UnsupportedHeadForm {
rule: RuleIndex,
form: HeadForm,
},
Unsupported(UnsupportedCapabilities),
TerminationUncertified(TerminationViolation),
}Expand description
An invalid program or an explicitly unsupported language feature.
Variants§
InvalidProgram(ProgramValidationError)
Structural safety, stratification or equality compatibility failed.
UnsupportedHeadForm
A rule’s head form needs a capability the profile lacks. Reported
before, and never folded into, Self::Unsupported.
Unsupported(UnsupportedCapabilities)
One or more required features are absent from the profile.
TerminationUncertified(TerminationViolation)
The program is not weakly acyclic, so evaluation may not terminate.
Implementations§
Source§impl ProfileCheckError
impl ProfileCheckError
Sourcepub const CODE_INVALID_PROGRAM: ErrorCode
pub const CODE_INVALID_PROGRAM: ErrorCode
Code of Self::InvalidProgram; the wrapped error carries its own code.
Sourcepub const CODE_UNSUPPORTED_HEAD_FORM: ErrorCode
pub const CODE_UNSUPPORTED_HEAD_FORM: ErrorCode
Code of Self::UnsupportedHeadForm.
Sourcepub const CODE_UNSUPPORTED_CAPABILITIES: ErrorCode
pub const CODE_UNSUPPORTED_CAPABILITIES: ErrorCode
Code of Self::Unsupported.
Sourcepub const CODE_TERMINATION_UNCERTIFIED: ErrorCode
pub const CODE_TERMINATION_UNCERTIFIED: ErrorCode
Code of Self::TerminationUncertified; the wrapped violation
carries its own code.
Trait Implementations§
Source§impl Clone for ProfileCheckError
impl Clone for ProfileCheckError
Source§impl Debug for ProfileCheckError
impl Debug for ProfileCheckError
Source§impl<'de> Deserialize<'de> for ProfileCheckError
impl<'de> Deserialize<'de> for ProfileCheckError
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
Source§impl Display for ProfileCheckError
impl Display for ProfileCheckError
impl Eq for ProfileCheckError
Source§impl Error for ProfileCheckError
impl Error for ProfileCheckError
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()
Source§impl PartialEq for ProfileCheckError
impl PartialEq for ProfileCheckError
Source§impl Serialize for ProfileCheckError
impl Serialize for ProfileCheckError
impl StructuralPartialEq for ProfileCheckError
Auto Trait Implementations§
impl Forget for ProfileCheckError
impl Freeze for ProfileCheckErrorwhere
*const u8 is !null: Freeze,
PhantomData<VariableSymbol>: Freeze,
*const ArcInner<str> is !null: Freeze,
PhantomData<ArcInner<str>>: Freeze,
PhantomData<LiteralIndex>: Freeze,
PhantomData<RuleIndex>: Freeze,
PhantomData<PredicateSymbol>: Freeze,
PhantomData<AtomSlot>: Freeze,
*const LeafNode<DatalogFeature, SetValZST> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(DatalogFeature, SetValZST)>>: Freeze,
*const SpecialEdge is !null: Freeze,
PhantomData<SpecialEdge>: Freeze,
PhantomData<ArgumentPosition>: Freeze,
impl Move for ProfileCheckError
impl RefUnwindSafe for ProfileCheckError
impl Send for ProfileCheckErrorwhere
RawVecInner: Send,
Arc<str>: Send,
NodeRef<Owned, DatalogFeature, SetValZST, LeafOrInternal>: Send,
BoxRaw<(DatalogFeature, SetValZST)>: Send,
BoxRaw<SpecialEdge>: Send,
impl Sync for ProfileCheckErrorwhere
RawVecInner: Sync,
Arc<str>: Sync,
NodeRef<Owned, DatalogFeature, SetValZST, LeafOrInternal>: Sync,
BoxRaw<(DatalogFeature, SetValZST)>: Sync,
BoxRaw<SpecialEdge>: Sync,
impl Unpin for ProfileCheckErrorwhere
*const u8 is !null: Unpin,
Arc<str>: Unpin,
*const LeafNode<DatalogFeature, SetValZST> is !null: Unpin,
Box<(DatalogFeature, SetValZST)>: Unpin,
Box<SpecialEdge>: Unpin,
impl UnsafeUnpin for ProfileCheckErrorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<VariableSymbol>: UnsafeUnpin,
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
PhantomData<LiteralIndex>: UnsafeUnpin,
PhantomData<RuleIndex>: UnsafeUnpin,
PhantomData<PredicateSymbol>: UnsafeUnpin,
PhantomData<AtomSlot>: UnsafeUnpin,
*const LeafNode<DatalogFeature, SetValZST> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(DatalogFeature, SetValZST)>>: UnsafeUnpin,
*const SpecialEdge is !null: UnsafeUnpin,
PhantomData<SpecialEdge>: UnsafeUnpin,
PhantomData<ArgumentPosition>: UnsafeUnpin,
impl UnwindSafe for ProfileCheckErrorwhere
RawVecInner: UnwindSafe,
Arc<str>: UnwindSafe,
BTreeMap<DatalogFeature, SetValZST>: UnwindSafe,
BoxRaw<SpecialEdge>: UnwindSafe,
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