#[non_exhaustive]pub enum PatternLoadError {
ConflictingField {
field: ErrorField,
previous_field: ErrorField,
},
UnsupportedLength(ErrorField),
FormatterTooSpecific(ErrorField),
Data(DataError, ErrorField),
}Expand description
Error returned from FixedCalendarDateTimeNames’s pattern load methods.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ConflictingField
A field conflicts with a previous field.
Fields conflict if they require the same type of data, for example the
EEE and EEEE fields (short vs long weekday) conflict, or the M
and L (format vs standalone month) conflict.
Fields
field: ErrorFieldThe field that was not able to be loaded.
previous_field: ErrorFieldThe field that prevented the new field from being loaded.
UnsupportedLength(ErrorField)
The field symbol is not supported in that length.
Some fields, such as O are not defined for all lengths (e.g. OO).
FormatterTooSpecific(ErrorField)
The specific formatter does not support this field.
This happens for example when trying to load a month field
on a FixedCalendarDateTimeNames<Gregorian, ZoneFieldSet>.
Data(DataError, ErrorField)
An error arising from the data provider for loading names.
Trait Implementations§
Source§impl Clone for PatternLoadError
impl Clone for PatternLoadError
impl Copy for PatternLoadError
Source§impl Debug for PatternLoadError
impl Debug for PatternLoadError
Source§impl Display for PatternLoadError
impl Display for PatternLoadError
Source§impl Error for PatternLoadError
impl Error for PatternLoadError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for PatternLoadError
impl PartialEq for PatternLoadError
impl StructuralPartialEq for PatternLoadError
Auto Trait Implementations§
impl Freeze for PatternLoadError
impl RefUnwindSafe for PatternLoadError
impl Send for PatternLoadError
impl Sync for PatternLoadError
impl Unpin for PatternLoadError
impl UnsafeUnpin for PatternLoadError
impl UnwindSafe for PatternLoadError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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> ⓘ
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> ⓘ
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