#[non_exhaustive]pub enum Error {
Show 14 variants
InvalidTask(TaskError),
CenterEffectReadsLeaf {
op: OpId,
effect: usize,
},
EffectConditionAcrossLeaves {
op: OpId,
effect: usize,
},
AxiomAcrossLeaves {
var: VarId,
leaves: (usize, usize),
},
DerivedInLeaf {
var: VarId,
},
ReachabilityNotOptimal,
UnknownVariable {
var: VarId,
},
DuplicateVariable {
var: VarId,
},
EmptyLeaf {
leaf: usize,
},
LeafTooLarge {
leaf: usize,
},
FactoringMismatch,
NotStar {
from: VarId,
to: VarId,
},
SymbolicUnsupported {
option: &'static str,
},
OutOfNodes,
}Expand description
Why a task or factoring cannot be searched.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidTask(TaskError)
The task failed sas_plus::Task::validate.
CenterEffectReadsLeaf
Effect effect of operator op sets a center variable under a
condition on a leaf variable. The successor’s center would then
depend on which leaf state the operator is applied in, which a single
decoupled successor cannot express.
Fields
EffectConditionAcrossLeaves
Effect effect of operator op sets a variable of one leaf under a
condition on another leaf, which would couple the two leaves’ states.
Fields
AxiomAcrossLeaves
Derived variable var depends (directly or through other derived
variables) on the state variables of two leaves, so its value is not
a function of the center and one leaf state.
Fields
DerivedInLeaf
A leaf names derived variable var. Derived variables are never
leaf variables: they stay in the center of a factoring and are
evaluated with the factor they depend on.
ReachabilityNotOptimal
Leaf prices without costs (Leaves::Reachability) were requested
for a cost-optimal search, which needs the prices.
UnknownVariable
A leaf names variable var, which the task does not have.
DuplicateVariable
Variable var appears in two leaves, or twice in one.
EmptyLeaf
Leaf leaf has no variables.
LeafTooLarge
Leaf leaf has more than MAX_LEAF_STATES states, too many to
enumerate as explicit leaves.
FactoringMismatch
The factoring does not partition exactly the task’s variables, so it was built for a different task.
NotStar
The causal graph has an arc from -> to between two different
leaves, so the factoring is not a strict star; see
Factoring::check_star. Through a derived variable, the arc runs
from one of its inputs (or joins two of them).
SymbolicUnsupported
Config::symbolic_leaves was combined with option, which
symbolic leaves do not support.
OutOfNodes
Symbolic leaves ran out of nodes in the largest BDD node table.
Trait Implementations§
impl Eq for Error
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Forget for Error
impl Freeze for Error
impl Move for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more