#[non_exhaustive]#[repr(C)]pub enum CalendarError {
Unknown = 0,
OutOfRange = 1,
UnknownEra = 2,
UnknownMonthCode = 3,
}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 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 From<DateError> for CalendarError
Available on crate feature calendar only.
impl From<DateError> for CalendarError
Available on crate feature
calendar only.Source§impl From<RangeError> for CalendarError
Available on crate feature calendar only.
impl From<RangeError> for CalendarError
Available on crate feature
calendar only.Source§fn from(_: RangeError) -> Self
fn from(_: RangeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CalendarError
impl PartialEq for CalendarError
Source§fn eq(&self, other: &CalendarError) -> bool
fn eq(&self, other: &CalendarError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy 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