pub enum IntermediateDecimalError {
ParseError {
error: ParseBigDecimalError,
},
OutOfRange,
LossyCast,
ConversionFailure,
}
Expand description
Errors related to the processing of decimal values in proof-of-sql
Variants§
ParseError
Represents an error encountered during the parsing of a decimal string.
Fields
§
error: ParseBigDecimalError
The underlying error
OutOfRange
Error occurs when this decimal cannot fit in a primitive.
LossyCast
Error occurs when this decimal cannot be losslessly cast into a primitive.
ConversionFailure
Cannot cast this decimal to a big integer
Trait Implementations§
source§impl Debug for IntermediateDecimalError
impl Debug for IntermediateDecimalError
source§impl Display for IntermediateDecimalError
impl Display for IntermediateDecimalError
source§impl Error for IntermediateDecimalError
impl Error for IntermediateDecimalError
source§impl ErrorCompat for IntermediateDecimalError
impl ErrorCompat for IntermediateDecimalError
source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source
. Read moresource§impl From<ParseBigDecimalError> for IntermediateDecimalError
impl From<ParseBigDecimalError> for IntermediateDecimalError
source§fn from(value: ParseBigDecimalError) -> Self
fn from(value: ParseBigDecimalError) -> Self
Converts to this type from the input type.
source§impl PartialEq for IntermediateDecimalError
impl PartialEq for IntermediateDecimalError
impl Eq for IntermediateDecimalError
impl StructuralPartialEq for IntermediateDecimalError
Auto Trait Implementations§
impl Freeze for IntermediateDecimalError
impl RefUnwindSafe for IntermediateDecimalError
impl Send for IntermediateDecimalError
impl Sync for IntermediateDecimalError
impl Unpin for IntermediateDecimalError
impl UnwindSafe for IntermediateDecimalError
Blanket Implementations§
source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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