pub enum CalendarError {
UnsupportedYear(i32),
InvalidUtcOffset(i32),
InvalidDateTime(String),
ConversionFailed(String),
}Expand description
A rejected input or calendar conversion failure.
Variants§
UnsupportedYear(i32)
The public, tested Gregorian year range was exceeded.
InvalidUtcOffset(i32)
The supplied civil offset exceeds the accepted range.
InvalidDateTime(String)
An invalid Gregorian date or civil time was supplied.
ConversionFailed(String)
The astronomical provider could not produce a consistent conversion.
Trait Implementations§
Source§impl Clone for CalendarError
impl Clone for CalendarError
Source§fn clone(&self) -> CalendarError
fn clone(&self) -> CalendarError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CalendarError
impl Debug for CalendarError
Source§impl Display for CalendarError
impl Display for CalendarError
impl Eq for CalendarError
Source§impl Error for CalendarError
impl Error for CalendarError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<CalendarError> for Error
impl From<CalendarError> for Error
Source§fn from(source: CalendarError) -> Self
fn from(source: CalendarError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CalendarError
impl PartialEq for CalendarError
impl StructuralPartialEq for CalendarError
Auto Trait Implementations§
impl Forget for CalendarError
impl Freeze for CalendarError
impl Move for CalendarError
impl RefUnwindSafe for CalendarError
impl Send for CalendarError
impl Sync for CalendarError
impl Unpin for CalendarError
impl UnsafeUnpin for CalendarError
impl UnwindSafe for CalendarError
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