#[non_exhaustive]pub enum ModelErrorKind {
DomainMismatch {
domain: String,
problem_domain: String,
},
UnknownType(String),
UnknownPredicate(String),
UnknownFunction(String),
UnknownObject(String),
UnboundVariable(String),
Arity {
symbol: String,
expected: usize,
found: usize,
},
DuplicateAction(String),
DuplicateVariable(String),
DerivedPredicateSet(String),
EqualitySet,
ContradictoryTimedLiterals {
atom: String,
time: String,
},
}Expand description
The kinds of ModelError. All names are in ASCII lowercase.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
DomainMismatch
The problem names another domain in (:domain ...).
Fields
UnknownType(String)
A type is used but not declared.
UnknownPredicate(String)
A predicate is used but not declared.
UnknownFunction(String)
A function is used but not declared.
UnknownObject(String)
An object or constant is used but not declared.
UnboundVariable(String)
A variable is used outside the parameters and quantifiers that bind it.
Arity
A predicate or function is applied to the wrong number of arguments.
Fields
DuplicateAction(String)
Two actions share a name.
DuplicateVariable(String)
One parameter or quantifier list declares a variable twice, such as (?x ?x).
DerivedPredicateSet(String)
An action effect or the initial state sets a derived predicate, which only its rule may define.
EqualitySet
An effect or the initial state sets an equality (= a b).
ContradictoryTimedLiterals
Two timed initial literals at the same time make one atom both true and false,
such as (at 1 (q)) and (at 1 (not (q))).
Trait Implementations§
Source§impl Clone for ModelErrorKind
impl Clone for ModelErrorKind
Source§impl Debug for ModelErrorKind
impl Debug for ModelErrorKind
Source§impl Display for ModelErrorKind
impl Display for ModelErrorKind
impl Eq for ModelErrorKind
Source§impl PartialEq for ModelErrorKind
impl PartialEq for ModelErrorKind
impl StructuralPartialEq for ModelErrorKind
Auto Trait Implementations§
impl Forget for ModelErrorKind
impl Freeze for ModelErrorKind
impl Move for ModelErrorKind
impl RefUnwindSafe for ModelErrorKind
impl Send for ModelErrorKind
impl Sync for ModelErrorKind
impl Unpin for ModelErrorKind
impl UnsafeUnpin for ModelErrorKind
impl UnwindSafe for ModelErrorKind
Blanket Implementations§
Source§impl<V, T, O> AcceptMut<V, T, O> for Twhere
V: VisitorMut<T, O>,
impl<V, T, O> AcceptMut<V, T, O> for Twhere
V: VisitorMut<T, O>,
Source§fn accept_mut(&self, v: &mut V) -> O
fn accept_mut(&self, v: &mut V) -> O
v visit self.