pub enum EngineError {
UnsupportedNode,
MissingContext(&'static str),
MalformedExpression,
ContradictionDetected,
DepthLimitExceeded,
}Expand description
Errors that a logic engine can return.
Variants§
UnsupportedNode
The AST node type is not supported by this engine.
MissingContext(&'static str)
A required context value is absent.
MalformedExpression
The expression is syntactically malformed for this paradigm.
ContradictionDetected
The engine encountered a contradiction it cannot resolve.
DepthLimitExceeded
Evaluation exceeded the allowed recursion depth.
Implementations§
Trait Implementations§
Source§impl Clone for EngineError
impl Clone for EngineError
Source§fn clone(&self) -> EngineError
fn clone(&self) -> EngineError
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 EngineError
impl Debug for EngineError
impl Eq for EngineError
Source§impl PartialEq for EngineError
impl PartialEq for EngineError
impl StructuralPartialEq for EngineError
Auto Trait Implementations§
impl Freeze for EngineError
impl RefUnwindSafe for EngineError
impl Send for EngineError
impl Sync for EngineError
impl Unpin for EngineError
impl UnsafeUnpin for EngineError
impl UnwindSafe for EngineError
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