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.

Trait Implementations

The internal type used to represent dates
Construct a date from era/month codes and fields
Construct the date from an ISO date
Obtain an ISO date from this date
Count the number of months in a given year, specified by providing a date from that year Read more
Count the number of days in a given year, specified by providing a date from that year Read more
Count the number of days in a given month, specified by providing a date from that year/month Read more
Calculate the day of the week and return it
The calendar-specific year represented by date
The calendar-specific month represented by date
The calendar-specific day-of-month represented by date
Information of the day of the year
Obtain a name for the calendar for debug printing
The AnyCalendarKind corresponding to this calendar, if one exists. Implementors outside of icu_calendar should return None Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
Convert this calendar into an AnyCalendar, moving it Read more
Convert this calendar into an AnyCalendar, cloning it Read more
Convert a date for this calendar into an AnyDateInner Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.