pub struct Coptic;Expand description
The Coptic Calendar
The Coptic calendar is a solar calendar used by the Coptic Orthodox Church, with twelve normal months and a thirteenth small epagomenal month.
This type can be used with Date or DateTime to represent dates in this calendar.
§Era codes
This calendar supports two era codes: "bd", and "ad", corresponding to the Before Diocletian and After Diocletian/Anno Martyrum
eras. 1 A.M. is equivalent to 284 C.E.
§Month codes
This calendar supports 13 solar month codes ("M01" - "M13"), with "M13" being used for the short epagomenal month
at the end of the year.
Trait Implementations§
Source§impl Calendar for Coptic
impl Calendar for Coptic
Source§type DateInner = CopticDateInner
type DateInner = CopticDateInner
Source§fn date_from_codes(
&self,
era: Era,
year: i32,
month_code: MonthCode,
day: u8,
) -> Result<Self::DateInner, CalendarError>
fn date_from_codes( &self, era: Era, year: i32, month_code: MonthCode, day: u8, ) -> Result<Self::DateInner, CalendarError>
Source§fn date_from_iso(&self, iso: Date<Iso>) -> CopticDateInner
fn date_from_iso(&self, iso: Date<Iso>) -> CopticDateInner
Source§fn months_in_year(&self, date: &Self::DateInner) -> u8
fn months_in_year(&self, date: &Self::DateInner) -> u8
Source§fn days_in_year(&self, date: &Self::DateInner) -> u16
fn days_in_year(&self, date: &Self::DateInner) -> u16
Source§fn days_in_month(&self, date: &Self::DateInner) -> u8
fn days_in_month(&self, date: &Self::DateInner) -> u8
Source§fn day_of_week(&self, date: &Self::DateInner) -> IsoWeekday
fn day_of_week(&self, date: &Self::DateInner) -> IsoWeekday
Source§fn year(&self, date: &Self::DateInner) -> FormattableYear
fn year(&self, date: &Self::DateInner) -> FormattableYear
dateSource§fn is_in_leap_year(&self, date: &Self::DateInner) -> bool
fn is_in_leap_year(&self, date: &Self::DateInner) -> bool
Source§fn month(&self, date: &Self::DateInner) -> FormattableMonth
fn month(&self, date: &Self::DateInner) -> FormattableMonth
dateSource§fn day_of_month(&self, date: &Self::DateInner) -> DayOfMonth
fn day_of_month(&self, date: &Self::DateInner) -> DayOfMonth
dateSource§fn day_of_year_info(&self, date: &Self::DateInner) -> DayOfYearInfo
fn day_of_year_info(&self, date: &Self::DateInner) -> DayOfYearInfo
Source§fn debug_name(&self) -> &'static str
fn debug_name(&self) -> &'static str
Source§fn any_calendar_kind(&self) -> Option<AnyCalendarKind>
fn any_calendar_kind(&self) -> Option<AnyCalendarKind>
AnyCalendarKind corresponding to this calendar,
if one exists. Implementors outside of icu::calendar should return NoneSource§impl IntoAnyCalendar for Coptic
impl IntoAnyCalendar for Coptic
Source§fn to_any(self) -> AnyCalendar
fn to_any(self) -> AnyCalendar
AnyCalendar, moving it Read moreSource§fn to_any_cloned(&self) -> AnyCalendar
fn to_any_cloned(&self) -> AnyCalendar
AnyCalendar, cloning it Read moreSource§fn date_to_any(&self, d: &Self::DateInner) -> AnyDateInner
fn date_to_any(&self, d: &Self::DateInner) -> AnyDateInner
AnyDateInner Read moreSource§impl Ord for Coptic
impl Ord for Coptic
Source§impl PartialOrd for Coptic
impl PartialOrd for Coptic
impl Copy for Coptic
impl Eq for Coptic
impl StructuralPartialEq for Coptic
Auto Trait Implementations§
impl Freeze for Coptic
impl RefUnwindSafe for Coptic
impl Send for Coptic
impl Sync for Coptic
impl Unpin for Coptic
impl UnwindSafe for Coptic
Blanket Implementations§
Source§impl<C> AsCalendar for Cwhere
C: Calendar,
impl<C> AsCalendar for Cwhere
C: Calendar,
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,
impl<T> MaybeSendSync for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 0 bytes