pub enum ComputableError {
InvalidBoundsOrder,
BoundsWorsened,
StateUnchanged,
ExcludedValueUnreachable,
RefinementChannelClosed,
MaxRefinementIterations {
max: usize,
},
Binary(BinaryError),
DomainError,
InfiniteBounds,
}Expand description
Errors that can occur during computable operations and refinement.
Variants§
InvalidBoundsOrder
Computed bounds are not in correct order (lower > upper).
BoundsWorsened
Refinement produced worse bounds than before.
StateUnchanged
Refinement did not change the state.
ExcludedValueUnreachable
Cannot refine bounds to exclude a particular value.
RefinementChannelClosed
The refinement coordination channel was closed unexpectedly.
MaxRefinementIterations
Maximum refinement iterations reached without meeting precision.
Binary(BinaryError)
Error from binary number operations.
DomainError
Input is outside the domain of the operation (e.g., negative for even roots).
InfiniteBounds
Input bounds are infinite where finite bounds are required.
Trait Implementations§
Source§impl Clone for ComputableError
impl Clone for ComputableError
Source§fn clone(&self) -> ComputableError
fn clone(&self) -> ComputableError
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 ComputableError
impl Debug for ComputableError
Source§impl Display for ComputableError
impl Display for ComputableError
Source§impl Error for ComputableError
impl Error for ComputableError
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()
Source§impl From<BinaryError> for ComputableError
impl From<BinaryError> for ComputableError
Source§fn from(error: BinaryError) -> Self
fn from(error: BinaryError) -> Self
Converts to this type from the input type.
Source§impl From<IntervalError> for ComputableError
impl From<IntervalError> for ComputableError
Source§fn from(error: IntervalError) -> Self
fn from(error: IntervalError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ComputableError
impl PartialEq for ComputableError
impl Eq for ComputableError
impl StructuralPartialEq for ComputableError
Auto Trait Implementations§
impl Freeze for ComputableError
impl RefUnwindSafe for ComputableError
impl Send for ComputableError
impl Sync for ComputableError
impl Unpin for ComputableError
impl UnsafeUnpin for ComputableError
impl UnwindSafe for ComputableError
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