#[non_exhaustive]pub enum Error {
Parser(ParserError),
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.
Parser(ParserError)
A parsing error for the plural rules.
Data(DataError)
An error originating from icu_provider
.
Trait Implementations§
source§impl Clone for PluralsError
impl Clone for PluralsError
source§fn clone(&self) -> PluralsError
fn clone(&self) -> PluralsError
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 PluralsError
impl Debug for PluralsError
source§impl Display for PluralsError
impl Display for PluralsError
source§impl Error for PluralsError
impl Error for PluralsError
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 PluralsError
impl From<DataError> for PluralsError
source§fn from(e: DataError) -> PluralsError
fn from(e: DataError) -> PluralsError
Converts to this type from the input type.
source§impl From<ParserError> for PluralsError
impl From<ParserError> for PluralsError
source§fn from(e: ParserError) -> PluralsError
fn from(e: ParserError) -> PluralsError
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 From<PluralsError> for DateTimeError
impl From<PluralsError> for DateTimeError
source§fn from(e: PluralsError) -> DateTimeError
fn from(e: PluralsError) -> DateTimeError
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 PluralsError
impl PartialEq for PluralsError
source§fn eq(&self, other: &PluralsError) -> bool
fn eq(&self, other: &PluralsError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PluralsError
impl StructuralPartialEq for PluralsError
Auto Trait Implementations§
impl RefUnwindSafe for PluralsError
impl Send for PluralsError
impl Sync for PluralsError
impl Unpin for PluralsError
impl UnwindSafe for PluralsError
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