pub enum CalendarError {
OutOfRange(String),
InvalidParameters(String),
NotImplemented(String),
ArithmeticError(String),
}Expand description
Core error types for calendar operations
Variants§
OutOfRange(String)
Date is out of supported range
InvalidParameters(String)
Invalid calendar parameters
NotImplemented(String)
Feature not yet implemented
ArithmeticError(String)
Arithmetic error
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 · 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
Source§impl Error for CalendarError
Available on crate feature std only.
impl Error for CalendarError
Available on crate feature
std only.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 PartialEq for CalendarError
impl PartialEq for CalendarError
impl Eq for CalendarError
impl StructuralPartialEq for CalendarError
Auto Trait Implementations§
impl Freeze 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