Enum icu::experimental::compactdecimal::Error
source · #[non_exhaustive]pub enum Error {
PluralRules(PluralsError),
Data(DataError),
Decimal(DecimalError),
FixedDecimal(FixedDecimalError),
Exponent {
actual: u8,
expected: u8,
log10_type: i16,
},
}
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
.
FixedDecimal(FixedDecimalError)
An error originating from FixedDecimal
.
Exponent
An error due to a CompactDecimal
with an
exponent inconsistent with the compact decimal data for the locale, e.g.,
when formatting 1c5 in English (US).
Trait Implementations§
source§impl Clone for CompactDecimalError
impl Clone for CompactDecimalError
source§fn clone(&self) -> CompactDecimalError
fn clone(&self) -> CompactDecimalError
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 CompactDecimalError
impl Debug for CompactDecimalError
source§impl Display for CompactDecimalError
impl Display for CompactDecimalError
source§impl From<DataError> for CompactDecimalError
impl From<DataError> for CompactDecimalError
source§fn from(e: DataError) -> CompactDecimalError
fn from(e: DataError) -> CompactDecimalError
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<FixedDecimalError> for CompactDecimalError
impl From<FixedDecimalError> for CompactDecimalError
source§fn from(e: FixedDecimalError) -> CompactDecimalError
fn from(e: FixedDecimalError) -> CompactDecimalError
Converts to this type from the input type.
source§impl From<PluralsError> for CompactDecimalError
impl From<PluralsError> for CompactDecimalError
source§fn from(e: PluralsError) -> CompactDecimalError
fn from(e: PluralsError) -> CompactDecimalError
Converts to this type from the input type.
source§impl PartialEq for CompactDecimalError
impl PartialEq for CompactDecimalError
source§fn eq(&self, other: &CompactDecimalError) -> bool
fn eq(&self, other: &CompactDecimalError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CompactDecimalError
impl StructuralPartialEq for CompactDecimalError
Auto Trait Implementations§
impl Freeze for CompactDecimalError
impl RefUnwindSafe for CompactDecimalError
impl Send for CompactDecimalError
impl Sync for CompactDecimalError
impl Unpin for CompactDecimalError
impl UnwindSafe for CompactDecimalError
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