#[non_exhaustive]pub enum EvalError {
UnsupportedIntegralOut,
MissingTableEntry,
MissingBinding(VariableId),
EmptySupport(VariableId),
DivisionByZero,
DrawOutOfRange {
draw: usize,
n_draws: usize,
},
SupportShape {
expected: usize,
actual: usize,
},
ProviderKind(&'static str),
UnsupportedConditioning(&'static str),
}Expand description
Errors from compiling or evaluating causal expressions.
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.
UnsupportedIntegralOut
Continuous IntegralOut without quadrature nodes and without discrete support.
MissingTableEntry
Provider has no entry for the requested factor / assignment.
MissingBinding(VariableId)
Required variable binding absent from the assignment.
EmptySupport(VariableId)
Provider reported empty support for a summed variable.
DivisionByZero
Division by zero while evaluating a ratio.
DrawOutOfRange
Posterior draw index out of range.
SupportShape
Support row length does not match requested variable count.
ProviderKind(&'static str)
Empirical provider used where posterior draws are required (or vice versa).
UnsupportedConditioning(&'static str)
Provider cannot answer a conditional query (non-empty conditioned_on) —
e.g. an independent-factor provider that only models unconditional marginals.
Trait Implementations§
impl Eq for EvalError
Source§impl Error for EvalError
impl Error for EvalError
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 EvalError
Auto Trait Implementations§
impl Freeze for EvalError
impl RefUnwindSafe for EvalError
impl Send for EvalError
impl Sync for EvalError
impl Unpin for EvalError
impl UnsafeUnpin for EvalError
impl UnwindSafe for EvalError
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