Enum icu::timezone::TimeZoneError
source · #[non_exhaustive]
pub enum TimeZoneError {
OffsetOutOfBounds,
InvalidOffset,
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.
OffsetOutOfBounds
An input overflowed its range.
InvalidOffset
The time zone offset was invalid.
Data(DataError)
An error originating inside of the data provider.
Trait Implementations§
source§impl Clone for TimeZoneError
impl Clone for TimeZoneError
source§fn clone(&self) -> TimeZoneError
fn clone(&self) -> TimeZoneError
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 TimeZoneError
impl Debug for TimeZoneError
source§impl Display for TimeZoneError
impl Display for TimeZoneError
source§impl Error for TimeZoneError
impl Error for TimeZoneError
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 TimeZoneError
impl From<DataError> for TimeZoneError
source§fn from(e: DataError) -> TimeZoneError
fn from(e: DataError) -> TimeZoneError
Converts to this type from the input type.
source§impl PartialEq<TimeZoneError> for TimeZoneError
impl PartialEq<TimeZoneError> for TimeZoneError
source§fn eq(&self, other: &TimeZoneError) -> bool
fn eq(&self, other: &TimeZoneError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.