Enum icu::properties::PropertiesError
source · #[non_exhaustive]pub enum PropertiesError {
PropDataLoad(DataError),
UnknownScriptId(u16),
UnknownGeneralCategoryGroup(u32),
UnexpectedPropertyName,
}
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.
PropDataLoad(DataError)
An error occurred while loading data
UnknownScriptId(u16)
An unknown value was used for the Script
property
UnknownGeneralCategoryGroup(u32)
An unknown value was used for the GeneralCategoryGroup
property
UnexpectedPropertyName
An unknown or unexpected property name was used for an API dealing with properties specified as strings at runtime
Trait Implementations§
source§impl Clone for PropertiesError
impl Clone for PropertiesError
source§fn clone(&self) -> PropertiesError
fn clone(&self) -> PropertiesError
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 PropertiesError
impl Debug for PropertiesError
source§impl Display for PropertiesError
impl Display for PropertiesError
source§impl Error for PropertiesError
impl Error for PropertiesError
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 PropertiesError
impl From<DataError> for PropertiesError
source§fn from(e: DataError) -> PropertiesError
fn from(e: DataError) -> PropertiesError
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.
source§impl From<PropertiesError> for NormalizerError
impl From<PropertiesError> for NormalizerError
source§fn from(e: PropertiesError) -> NormalizerError
fn from(e: PropertiesError) -> NormalizerError
Converts to this type from the input type.
source§impl PartialEq for PropertiesError
impl PartialEq for PropertiesError
source§fn eq(&self, other: &PropertiesError) -> bool
fn eq(&self, other: &PropertiesError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PropertiesError
impl Eq for PropertiesError
impl StructuralPartialEq for PropertiesError
Auto Trait Implementations§
impl Freeze for PropertiesError
impl RefUnwindSafe for PropertiesError
impl Send for PropertiesError
impl Sync for PropertiesError
impl Unpin for PropertiesError
impl UnwindSafe for PropertiesError
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