pub enum LoadError {
WrongDomain {
expected: &'static str,
found: String,
},
UnknownType(String),
MultipleTypes(String),
UnknownObject(String),
UnknownSymbol(String),
WrongArity(String),
WrongType {
symbol: String,
object: String,
expected: &'static str,
},
UnknownVariable(String),
Unsupported(&'static str),
InvalidCost {
function: String,
value: f64,
},
}Available on crate feature
codegen only.Expand description
Why a problem doesn’t fit a generated domain.
Variants§
WrongDomain
The problem names another domain.
UnknownType(String)
A type that the domain does not declare.
MultipleTypes(String)
An object declared with more than one type, or with an either type.
UnknownObject(String)
A name that is neither an object nor a constant.
UnknownSymbol(String)
A predicate or function the domain does not declare.
WrongArity(String)
A predicate or function with the wrong number of arguments.
WrongType
An object of the wrong type for an argument.
Fields
UnknownVariable(String)
A variable used outside the quantifier that declares it.
Unsupported(&'static str)
A construct the generated code does not support.
InvalidCost
A function that action costs read has a value that is not a non-negative integer.
Trait Implementations§
Source§impl Error for LoadError
impl Error for LoadError
1.30.0 · 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()
impl StructuralPartialEq for LoadError
Auto Trait Implementations§
impl Forget for LoadError
impl Freeze for LoadError
impl Move for LoadError
impl RefUnwindSafe for LoadError
impl Send for LoadError
impl Sync for LoadError
impl Unpin for LoadError
impl UnsafeUnpin for LoadError
impl UnwindSafe for LoadError
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
Lets the mutable visitor
v visit self.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