Enum icu::relativetime::Error
source · #[non_exhaustive]pub enum Error {
PluralRules(PluralsError),
Data(DataError),
Decimal(DecimalError),
}
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.
PluralRules(PluralsError)
An error originating from PluralRules
.
Data(DataError)
An error originating from DataProvider
.
Decimal(DecimalError)
An error originating from FixedDecimalFormatter
.
Trait Implementations§
source§impl Clone for RelativeTimeError
impl Clone for RelativeTimeError
source§fn clone(&self) -> RelativeTimeError
fn clone(&self) -> RelativeTimeError
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 RelativeTimeError
impl Debug for RelativeTimeError
source§impl Display for RelativeTimeError
impl Display for RelativeTimeError
source§impl From<DataError> for RelativeTimeError
impl From<DataError> for RelativeTimeError
source§fn from(e: DataError) -> RelativeTimeError
fn from(e: DataError) -> RelativeTimeError
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 From<PluralsError> for RelativeTimeError
impl From<PluralsError> for RelativeTimeError
source§fn from(e: PluralsError) -> RelativeTimeError
fn from(e: PluralsError) -> RelativeTimeError
Converts to this type from the input type.
source§impl PartialEq for RelativeTimeError
impl PartialEq for RelativeTimeError
source§fn eq(&self, other: &RelativeTimeError) -> bool
fn eq(&self, other: &RelativeTimeError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RelativeTimeError
impl StructuralPartialEq for RelativeTimeError
Auto Trait Implementations§
impl RefUnwindSafe for RelativeTimeError
impl Send for RelativeTimeError
impl Sync for RelativeTimeError
impl Unpin for RelativeTimeError
impl UnwindSafe for RelativeTimeError
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