Enum icu::relativetime::RelativeTimeError
source · [−]#[non_exhaustive]
pub enum RelativeTimeError {
PluralRules(PluralsError),
Data(DataError),
Decimal(DecimalError),
}
Expand description
A list of error outcomes for various operations in the icu_relativetime
crate.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
PluralRules(PluralsError)
An error originating from PluralRules
.
Data(DataError)
An error originating from DataProvider
.
Decimal(DecimalError)
An error originating from FixedDecimalFormatter
.
Trait Implementations
sourceimpl Clone for RelativeTimeError
impl Clone for RelativeTimeError
sourcefn clone(&self) -> RelativeTimeError
fn clone(&self) -> RelativeTimeError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RelativeTimeError
impl Debug for RelativeTimeError
sourceimpl Display for RelativeTimeError
impl Display for RelativeTimeError
sourceimpl From<DataError> for RelativeTimeError
impl From<DataError> for RelativeTimeError
sourcefn from(e: DataError) -> RelativeTimeError
fn from(e: DataError) -> RelativeTimeError
Converts to this type from the input type.
sourceimpl From<DecimalError> for RelativeTimeError
impl From<DecimalError> for RelativeTimeError
sourcefn from(e: DecimalError) -> RelativeTimeError
fn from(e: DecimalError) -> RelativeTimeError
Converts to this type from the input type.
sourceimpl From<PluralsError> for RelativeTimeError
impl From<PluralsError> for RelativeTimeError
sourcefn from(e: PluralsError) -> RelativeTimeError
fn from(e: PluralsError) -> RelativeTimeError
Converts to this type from the input type.
sourceimpl PartialEq<RelativeTimeError> for RelativeTimeError
impl PartialEq<RelativeTimeError> for RelativeTimeError
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &RelativeTimeError) -> bool
fn ne(&self, other: &RelativeTimeError) -> bool
This method tests for !=
.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Separable for T where
T: Display,
impl<T> Separable for T where
T: Display,
sourcefn separate_by_policy(&self, policy: SeparatorPolicy<'_>) -> String
fn separate_by_policy(&self, policy: SeparatorPolicy<'_>) -> String
Adds separators according to the given SeparatorPolicy
. Read more
sourcefn separate_with_commas(&self) -> String
fn separate_with_commas(&self) -> String
Inserts a comma every three digits from the right. Read more
sourcefn separate_with_spaces(&self) -> String
fn separate_with_spaces(&self) -> String
Inserts a space every three digits from the right. Read more
sourcefn separate_with_dots(&self) -> String
fn separate_with_dots(&self) -> String
Inserts a period every three digits from the right. Read more
sourcefn separate_with_underscores(&self) -> String
fn separate_with_underscores(&self) -> String
Inserts an underscore every three digits from the right. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more