#[non_exhaustive]pub enum EcmaReferenceYearError {
Unimplemented,
MonthCodeNotInCalendar,
}Expand description
Internal narrow error type for calculating the ECMA reference year
Public but unstable because it is used on hijri::Rules
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.
Trait Implementations§
Source§impl Clone for EcmaReferenceYearError
impl Clone for EcmaReferenceYearError
Source§fn clone(&self) -> EcmaReferenceYearError
fn clone(&self) -> EcmaReferenceYearError
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 EcmaReferenceYearError
impl Debug for EcmaReferenceYearError
Source§impl From<EcmaReferenceYearError> for DateFromFieldsError
impl From<EcmaReferenceYearError> for DateFromFieldsError
Source§fn from(value: EcmaReferenceYearError) -> Self
fn from(value: EcmaReferenceYearError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EcmaReferenceYearError
impl PartialEq for EcmaReferenceYearError
Source§fn eq(&self, other: &EcmaReferenceYearError) -> bool
fn eq(&self, other: &EcmaReferenceYearError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for EcmaReferenceYearError
impl Eq for EcmaReferenceYearError
impl StructuralPartialEq for EcmaReferenceYearError
Auto Trait Implementations§
impl Freeze for EcmaReferenceYearError
impl RefUnwindSafe for EcmaReferenceYearError
impl Send for EcmaReferenceYearError
impl Sync for EcmaReferenceYearError
impl Unpin for EcmaReferenceYearError
impl UnsafeUnpin for EcmaReferenceYearError
impl UnwindSafe for EcmaReferenceYearError
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