Enum icu_timezone::TimeZoneError
source · #[non_exhaustive]pub enum TimeZoneError {
OffsetOutOfBounds,
InvalidOffset,
MismatchedChecksums,
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.
MismatchedChecksums
The data name checksums do not match (data from different sources?)
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 From<DataError> for TimeZoneError
impl From<DataError> for TimeZoneError
source§impl PartialEq for TimeZoneError
impl PartialEq 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 ==
.impl Copy for TimeZoneError
impl StructuralPartialEq for TimeZoneError
Auto Trait Implementations§
impl Freeze for TimeZoneError
impl RefUnwindSafe for TimeZoneError
impl Send for TimeZoneError
impl Sync for TimeZoneError
impl Unpin for TimeZoneError
impl UnwindSafe for TimeZoneError
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