pub enum IntermediateDecimalError {
ParseError(ParseBigDecimalError),
OutOfRange,
LossyCast,
ConversionFailure,
}
Expand description
Errors related to the processing of decimal values in proof-of-sql
Variants§
ParseError(ParseBigDecimalError)
Represents an error encountered during the parsing of a decimal string.
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§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<ParseBigDecimalError> for IntermediateDecimalError
impl From<ParseBigDecimalError> for IntermediateDecimalError
source§fn from(source: ParseBigDecimalError) -> Self
fn from(source: 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> 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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.