Enum icu::collator::CollatorError
source · #[non_exhaustive]pub enum CollatorError {
NotFound,
MalformedData,
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.
NotFound
The requested collation does not exist
MalformedData
Requested data was found but was malformed
Data(DataError)
An error originating inside of the data provider.
Trait Implementations§
source§impl Debug for CollatorError
impl Debug for CollatorError
source§impl Display for CollatorError
impl Display for CollatorError
source§impl Error for CollatorError
impl Error for CollatorError
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 CollatorError
impl From<DataError> for CollatorError
source§fn from(e: DataError) -> CollatorError
fn from(e: DataError) -> CollatorError
Converts to this type from the input type.
source§impl From<PropertiesError> for CollatorError
impl From<PropertiesError> for CollatorError
source§fn from(e: PropertiesError) -> CollatorError
fn from(e: PropertiesError) -> CollatorError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CollatorError
impl RefUnwindSafe for CollatorError
impl Send for CollatorError
impl Sync for CollatorError
impl Unpin for CollatorError
impl UnwindSafe for CollatorError
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more