#[non_exhaustive]pub enum Error {
Data(DataError),
}
Expand description
A list of error outcomes for various operations in this module.
Re-exported as Error
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Data(DataError)
An error originating inside of the data provider.
Trait Implementations§
source§impl Clone for DecimalError
impl Clone for DecimalError
source§fn clone(&self) -> DecimalError
fn clone(&self) -> DecimalError
Returns a copy 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 DecimalError
impl Debug for DecimalError
source§impl Display for DecimalError
impl Display for DecimalError
source§impl Error for DecimalError
impl Error for DecimalError
1.30.0 · 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<DataError> for DecimalError
impl From<DataError> for DecimalError
source§fn from(e: DataError) -> DecimalError
fn from(e: DataError) -> DecimalError
Converts to this type from the input type.
source§impl From<DecimalError> for CompactDecimalError
impl From<DecimalError> for CompactDecimalError
source§fn from(e: DecimalError) -> CompactDecimalError
fn from(e: DecimalError) -> CompactDecimalError
Converts to this type from the input type.
source§impl From<DecimalError> for DateTimeError
impl From<DecimalError> for DateTimeError
source§fn from(e: DecimalError) -> DateTimeError
fn from(e: DecimalError) -> DateTimeError
Converts to this type from the input type.
source§impl From<DecimalError> for RelativeTimeError
impl From<DecimalError> for RelativeTimeError
source§fn from(e: DecimalError) -> RelativeTimeError
fn from(e: DecimalError) -> RelativeTimeError
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 Copy for DecimalError
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