pub enum DecimalError {
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 DecimalError
impl Debug for DecimalError
source§impl Display for DecimalError
impl Display for DecimalError
source§impl Error for DecimalError
impl Error for DecimalError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 DecimalError
impl From<ParseBigDecimalError> for DecimalError
source§fn from(source: ParseBigDecimalError) -> Self
fn from(source: ParseBigDecimalError) -> Self
Converts to this type from the input type.
source§impl PartialEq for DecimalError
impl PartialEq for DecimalError
source§fn eq(&self, other: &DecimalError) -> bool
fn eq(&self, other: &DecimalError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for DecimalError
Auto Trait Implementations§
impl Freeze for DecimalError
impl RefUnwindSafe for DecimalError
impl Send for DecimalError
impl Sync for DecimalError
impl Unpin for DecimalError
impl UnwindSafe for DecimalError
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