pub enum PropagatorError {
ExecutionFailed {
reason: String,
},
NanDetected {
field_id: FieldId,
cell_index: Option<usize>,
},
ConstraintViolation {
constraint: String,
},
}Expand description
Errors from individual propagator execution.
Returned by Propagator::step() and wrapped in
StepError::PropagatorFailed by the tick engine.
Variants§
ExecutionFailed
The propagator’s step function failed
(MURK_ERROR_PROPAGATOR_FAILED).
NanDetected
NaN detected in propagator output (sentinel checking).
Fields
ConstraintViolation
A user-defined constraint was violated.
Trait Implementations§
Source§impl Clone for PropagatorError
impl Clone for PropagatorError
Source§fn clone(&self) -> PropagatorError
fn clone(&self) -> PropagatorError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PropagatorError
impl Debug for PropagatorError
Source§impl Display for PropagatorError
impl Display for PropagatorError
Source§impl Error for PropagatorError
impl Error for PropagatorError
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()
Auto Trait Implementations§
impl Freeze for PropagatorError
impl RefUnwindSafe for PropagatorError
impl Send for PropagatorError
impl Sync for PropagatorError
impl Unpin for PropagatorError
impl UnwindSafe for PropagatorError
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