#[non_exhaustive]pub enum TaskError {
InitialStateArity,
ValueOutOfRange {
fact: Fact,
},
UnknownVariable {
fact: Fact,
},
DuplicateEffect {
op: OpId,
var: VarId,
},
ContradictoryPrecondition {
op: OpId,
var: VarId,
},
ContradictoryGoal {
var: VarId,
},
DerivedVariableEffect {
op: OpId,
var: VarId,
},
AxiomHeadNotDerived {
axiom: usize,
},
AxiomLayer {
axiom: usize,
},
}Expand description
Why Task::validate rejected a task.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InitialStateArity
The initial state does not have one value per variable.
ValueOutOfRange
A fact assigns a value outside its variable’s domain.
UnknownVariable
A fact names a variable the task does not have.
DuplicateEffect
An operator has two unconditional effects on one variable.
ContradictoryPrecondition
An operator requires two values of one variable.
ContradictoryGoal
The goal requires two values of one variable.
DerivedVariableEffect
An operator sets a derived variable.
AxiomHeadNotDerived
An axiom sets a state variable.
Fields
§
axiom: usizeIndex of the axiom in Task::axioms.
AxiomLayer
An axiom depends on a derived variable of a higher layer, or on one of its own layer being at its default (negation needs a lower layer).
Fields
§
axiom: usizeIndex of the axiom in Task::axioms.
Trait Implementations§
impl Eq for TaskError
Source§impl Error for TaskError
impl Error for TaskError
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 TaskError
Auto Trait Implementations§
impl Forget for TaskError
impl Freeze for TaskError
impl Move for TaskError
impl RefUnwindSafe for TaskError
impl Send for TaskError
impl Sync for TaskError
impl Unpin for TaskError
impl UnsafeUnpin for TaskError
impl UnwindSafe for TaskError
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